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've searched everywhere for a solution to this but not having any luck.
I'm trying to write a calculate formula to create a kind of 'Grand Total' on every row for a given date range (ignoring all other filter context).
Effectively, something that says:
Grand Total Orders for Selected Date Range = Calculate(PerformanceTable[Total Orders],ALL(PerformanceTable),***FILTERED BY SELECTED DATE RANGE***)
Please can you help me with this?
Many thanks!
Dom
Solved! Go to Solution.
@Anonymous ,
Try like
Grand Total Orders for Selected Date Range =
var _max = maxx(allselected(Date),Date[Date])
var _min = minx(allselected(Date),Date[Date])
return
Calculate(PerformanceTable[Total Orders],filter(ALL(PerformanceTable),PerformanceTable[Date]>=_min && PerformanceTable[Date]<=_max))
@Anonymous ,
Try like
Grand Total Orders for Selected Date Range =
var _max = maxx(allselected(Date),Date[Date])
var _min = minx(allselected(Date),Date[Date])
return
Calculate(PerformanceTable[Total Orders],filter(ALL(PerformanceTable),PerformanceTable[Date]>=_min && PerformanceTable[Date]<=_max))
You can use SELECTEDVALUE to get the value from your dateslicer and use it in a FILTER expression.
Quality over Quantity
Hi @EricHulshof ,
Please can you expand on how I would do this? Sorry, I'm fairly new to Power BI. 🙂
@Anonymous
If you could share a sample dataset of your report i could write the measure for you and explain how it works 🙂
Quality over Quantity
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 |
---|---|
114 | |
100 | |
75 | |
73 | |
49 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |