Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
What is the measure to calculate the MODE (value that occurs most often) of duration?
My data is like this:
salesPersonID | salesDate | salesDuration |
1 | 7/5/2019 | 30 |
1 | 7/9/2019 | 30 |
1 | 7/23/2019 | 5 |
1 | 8/10/2019 | 5 |
1 | 8/15/2019 | 5 |
1 | 8/25/2019 | 100 |
2 | 7/5/2019 | 45 |
2 | 7/9/2019 | 30 |
2 | 7/23/2019 | 30 |
2 | 8/10/2019 | 100 |
2 | 8/15/2019 | 100 |
2 | 8/25/2019 | 30 |
The MODE should take into consideration sales person and date. e.g.:
- If the end user doesn't apply any filters in the dashboard, the measure should produce "30".
- If the end user sets a filter on sales person #1, the measure should produce "5".
- If the end user sets a filter on August, the measure should produce "100".
- If the end user sets a filter on sales person #1 and August, the measure should produce "5".
Thank you much for all guidance!
Solved! Go to Solution.
I wrote a Mode Single Column and Mode Multiple Column measure awhile ago:
Hi,
You may download my PBI file from here.
Hope this helps.
Hi,
You may download my PBI file from here.
Hope this helps.
I wrote a Mode Single Column and Mode Multiple Column measure awhile ago:
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |