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.
Hi,
I need to build a calculation that counts the number of items within a given date range - using a Date, Between Slicer on a Date table, and then I need to divide the number of days in that date range of the slicer by the number of Items in that date range.
So, for example: If my date slicer shows 07/15/2021 - 09/16/2021 (63 days) and there are 45 items during that time period, I want to divide 63/45. If the date slicer was then changed to 09/01/2021 - 09/16/2021, (16 days) and there were 23 items, I want to divide 16/23.
Is this possible?
Thanks for your help!
Mike
Solved! Go to Solution.
you need to create a date table and create relationship with the current table.
Then create a measure.
Measure = COUNT('Date'[Date])/sum('Item'[Item])
pls see the attachment below
Proud to be a Super User!
you need to create a date table and create relationship with the current table.
Then create a measure.
Measure = COUNT('Date'[Date])/sum('Item'[Item])
pls see the attachment below
Proud to be a Super User!
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 |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |