Quantcast
Channel: Power BI Analytics Kingdom | Blog
Browsing latest articles
Browse All 166 View Live

How to Calculate Number of Days Passed in a Week of the Month in Power BI

How to Calculate Cumulative Number of Days Passed in a Week of the Month in Power BIScenario:Suppose we have the Data Model as follows.The Relationships are as follows:Based on the above Data Model, we...

View Article



How to create a Dynamic Date Calendar using Power Query in Power BI

How to create a Dynamic Date Calendar using M-Query in Power BIScenario:Suppose we want to generate a Calendar Date Table with Dates ranging from Last 5 Years from Today to the Next 5 Years.We can...

View Article

How to find the MAX Value of Multiple Measures or Columns in Power BI

How to find the Maximum Value of Multiple Measures or Columns in Power BIScenario1: MAX of 3 Measures:Suppose we have 3 measures like below, from which we need to find the Max Value.Printer Sales =...

View Article

How to select a dynamic Date Dimension on X-Axis of a Visual based on Date...

How to Select a Date Dimension dynamically on X-Axis for a Visual based on Selected Date Range in Power BIScenario:Suppose we have a Data Model as per below.The relationships are as per...

View Article

How to Replace values from a Column based on multiple conditions in Power Query

How to Update values from a Column based on multiple conditions from other Columns in Power QueryScenario:Suppose we have a sample table "tbl_Sample" as follows :From this table we need to...

View Article


How to Calculate the 3 Months Rolling Average Sales in Power BI

How to Calculate the 3 Months Moving Average Sales in Power BIA Rolling Average also known as Moving Average, is a metric that calculates the averages to analyze data for specific time series and to...

View Article

How to Convert a Julian Date to Calendar Date In Power BI

How to Convert a Julian Date to Calendar Date (vice versa) using Power Query in Power BIScenario:Suppose we have Calendar Dates as follows.here, the DimDate is the Date Dimension, which is the Normal...

View Article

How to perform Bottom N Analysis by Measure in Power BI

How to Analyze Bottom N Products by Selected Measure in Power BIScenario:Suppose we have a Data Model as follows.The Relationships are as follows:Based on this Model, we need to calculate the Bottom N...

View Article


How to create and filter list of Dates using Power Query in Power BI

How to create and filter list of Dates using Power M-Query in Power BIScenario:We want to create a List of Dates of Current Month and then Filter out the Dates of Week 2 and Week 4, using Power...

View Article


How to find Min and Max Dates across multiple Columns in Power Query

How to find Minimum and Maximum Dates across multiple Columns in Power QueryScenario:Suppose, we have the multiple Date Columns like [Act Date1], [Plan Date1], [Act Date2] and [Plan Date2] as...

View Article

How to Add additional Rows to a table based on a Condition in Power Query

How to repeat Rows in a table based on a Condition in Power QueryScenario:Suppose we have sample data as follows:From the above sample data, based on [VisitFreq] and [DateKey] Columns, we have to...

View Article

How to Repeat Rows in a Table and Add Index in Power Query

How to Repeat Rows based on a Column and Add Index in Power Query Scenario:Suppose we have the sample data as follows:Now from above data, based on the [Freq] column, we have to repeat the rows and...

View Article

How to Dynamically remove unwanted Columns from a Table in Power Query

How to Remove Unwanted Columns Dynamically from a Table using Power QueryScenario:Suppose, we have a sample data table with unwanted columns as follows:Now from this table, we want to remove the...

View Article


How to Transpose Rows to Columns using Power Query

How to Transpose Rows to Columns using M-Query in Power BIScenario:Suppose we have a Sample dataset as follows:Now we can transpose the Rows to Columns using the following M-Query:let    Source =...

View Article

How to identify the Duplicate Values in a Column in Power BI

How to identify the Duplicates in a Column in using M-Query in Power BIScenario:Lets suppose, we have a sample table as below, where the ProdID is duplicated in the table.Though the record by [TransNo]...

View Article


How to view the Schema of a Table or Dataset in Power BI

How to view the Schema of a Table or Dataset in Power QueryScenario:Suppose we have a sample table/dataset "tbl_Sample" in Power BI as follows:Now we can view the Schema ( Columns definition) of a...

View Article

How to create Parent and Child Hierarchy using Power Query in Power BI

How to create Root Node and Leaf Node Hierarchy using M-Query in Power BIScenario:Suppose we have a sample data with ParentNode and ChildNode columns as follows.Lets say:A1 is the Parent Node for the...

View Article


How to create Parent and Child Hierarchy using Recursive CTE in SQL Server

How to create Root Node and Leaf Node Hierarchy using Recursive CTE in SQL ServerScenario:Suppose we have a sample data with ParentNode and ChildNode columns as follows.Lets say:A1 is the Parent Node...

View Article

How to Remove the Special Characters from a Column in SQL Server

How to use PATINDEX Function to Remove the Special Characters from a Column in SQL ServerScenario:Suppose we have a sample data with Special Charaters as shown...

View Article

How to find the Minimum and Maximum value and Count of items from a Table in...

How to find the Minimum and Maximum value and Count of items for Min and Max values from a Table in SQL ServerScenario:Suppose we have a sample Products table with Prices details./* Create a sample...

View Article

How to use the STRING_AGG function to Aggregate the Strings in SQL Server

How to Aggregate or Concatenate the Numbers and Strings using STRING_AGG Function in SQL ServerScenario:Suppose we a sample Categories table as follows.. /* Create sample Categories table */CREATE...

View Article


How to find Minimum and Maximum value across multiple Columns in SQL Server

How to return Minimum and Maximum value across multiple Columns in SQL ServerScenario:Suppose we have a sample Products table with Price values across multiple Years as shown below./* Create a sample...

View Article


How to ROLLUP Sub Total Count, Sum and Average values for each Hierarchy...

How to calculate the ROLLUP Sub Totals and Grand Total Count, Sum and Average values for each Dimension Level in SQL ServerScenario:Suppose we have a sample table with Price values for different...

View Article

How to Calculate the Average of Averages using DAX in Power BI

How to Calculate the Average of Main Category based on Averages of Sub Category using DAX in Power BIScenario:We have sample Dataset as follows, with various Dimension levels like:Region > Country...

View Article

How to calculate Max Sale Date and Product details using DAX in Power BI

How to return Max Sale Date and Product with correct Totals using DAX in Power BISuppose we have simple Data Modal as follows.The sample Data from ds_Sample is as...

View Article

Browsing latest articles
Browse All 166 View Live




Latest Images