Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
I am wanting to find the COUNT of dates in a column using a measure that finds which date occurs most as I am wanting to count how many times this date occurs in the table.
Date |
01/01/2023 |
05/01/2023 |
05/01/2023 |
06/01/2023 |
Most Frequent Date: 05/01/2023
Result: 2
I have the current measure that I am wanting to work off
Solved! Go to Solution.
For the last measure which isn't working, you'll probably have to put the result of the first measure in a variable and use the variable in the Filter, e.g. var _mostCommon = [Measure - Max Date Count] then pass _MostCommon to the FILTER clause
This is the sample data I used:
This is my date count measure:
For the last measure which isn't working, you'll probably have to put the result of the first measure in a variable and use the variable in the Filter, e.g. var _mostCommon = [Measure - Max Date Count] then pass _MostCommon to the FILTER clause
This worked! I knew it was somehting to do with the Measure going through the FILTER
First, create a date dimension table and establish a relationship to your fact table. Then create a measure to count the rows of the date column in your fact table. Then in your visual, add the date column from your date dimension table, and the measure of counted rows.
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.