Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello,
I have a field that calculates fine at the row level within a table but doesn't not display at the total level (please see image below). Any recommendations on how I should modify it so the total will display correctly?
Thanks for any help
YTD DF =
CALCULATE([Sales],
FILTER(ALL(Actuals),
Actuals[Month Number] <= SELECTEDVALUE(CalendarTable[Month Number]) &&
Actuals[Year Num] = YEAR(TODAY()) &&
Actuals[Channel] = SELECTEDVALUE(Channels[Channels]) &&
Actuals[ReportingBrand] = SELECTEDVALUE(Brand[Brand])))
Solved! Go to Solution.
Make sure CalendarTable is the "parent" of your sales table (you may have to create a full date column on the sales table instead of just having month number & year number)
Then you can create a measure using TOTALYTD, and the nature of slicers is such that you do not have to reference them directly:
YTD DF = CALCULATE(TOTALYTD(Actuals[Sales]))
The selected values of Brand and Channel from the slicers will automatically filter down the measure.
Hope this helps,
David
Make sure CalendarTable is the "parent" of your sales table (you may have to create a full date column on the sales table instead of just having month number & year number)
Then you can create a measure using TOTALYTD, and the nature of slicers is such that you do not have to reference them directly:
YTD DF = CALCULATE(TOTALYTD(Actuals[Sales]))
The selected values of Brand and Channel from the slicers will automatically filter down the measure.
Hope this helps,
David
Ah ha. Brilliant. When I was searching for how to calculate YTD online the solution I saw was this more complicated method. Nice that there's a function in place. Seems like there's lots of good Power BI adds occuring.
Thanks again
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
85 | |
65 | |
51 | |
45 |
User | Count |
---|---|
217 | |
88 | |
81 | |
65 | |
56 |