Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a problem with the value of a measure not appearing in the data in a table, and only appearing in the "Total" row. As shown in the screenshot below, the value appearing in the Total row is correct; I'm left wondering why this value doesn't appear in the area enclosed by the red box:
Here's my formula for the measure:
PrevWeekRevenuesum = VAR PreviousWeek = CALCULATE(MAX(_Top200[GameWeekRowNumber])) - 1
RETURN
CALCULATE(SUMX(_Top200, _Top200[Revenue]), FILTER(_Top200, _Top200[GameWeekRowNumber] = PreviousWeek))
In this scenario, if you directly filter the table, it will take current row as context so that it can't find the row like "_Top200[GameWeekRowNumber] = PreviousWeek". To get the correct result, you should change the context into entire table using ALL().
Previous Week Revenue = var PreviousWeek=MAX(_Top200[GameWeek])-1 return CALCULATE(SUM(_Top200[Revenue]),FILTER(ALL(_Top200),_Top200[GameWeek]=PreviousWeek))
Regards,
Thanks for your reply, Simon,
I've updated my measure as you've suggested, but by enveloping my table with the ALL function, I now get a sum of the entire dataset in this location, repeated for each game title in my data..
I need to get the sum of a game's revenue from the previous week, in order to calculate a week-over-week metric.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
72 | |
67 | |
51 | |
38 | |
26 |
User | Count |
---|---|
89 | |
52 | |
45 | |
39 | |
38 |