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.
Hi all,
I have very simple measure with MAX value. Issue is that Total showing MAX value too, but I need to show SUM of all MAX values in the table.
Basically
Total should summary of all values: 60,000 for upper_value and 51,000 for lower_value.
see printscreen:
This is desktop file:
https://drive.google.com/file/d/1_R84-65eDKQunYTwyr888yID97tdhGUR/view?usp=drive_link
Thank you for your help on this!
Solved! Go to Solution.
upper_value =
var a = ADDCOLUMNS(summarizecolumns(ads[creative_id]),"m",CALCULATE(MAX(statistics[times_shown_upper_bound_region])))
return sumx(a,[m])
Hi,
thank you for your answer.
This is new link to the file: https://drive.google.com/file/d/1_R84-65eDKQunYTwyr888yID97tdhGUR/view?usp=drive_link
The size of the file has been reduced.
The file contains data from BQ public dataset. There are two metrics - impressions - lower and impressions - upper.
I have various charts and tables in the original dashboard, I need to create a measure showing total like summary and not like MAX, but the rows must remail like MAX.
This is powerbi file showing total 5000 and 4000 impressions, (individual rows are showing correct values)
and this is excel version this is what I need to see in all visualisation across dashboard.
Do you think this is possible?
upper_value =
var a = ADDCOLUMNS(summarizecolumns(ads[creative_id]),"m",CALCULATE(MAX(statistics[times_shown_upper_bound_region])))
return sumx(a,[m])
This is absolute amazing solution, thank you so much! It works!
Your sample file is way too big. Please provide sample data that fully covers your issue, but not more.
Please show the expected outcome based on the sample data you provided.
You cannot measure a measure directly. Either materialize it first, or create a separate measure that implements the entire business logic.
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
12 | |
10 | |
6 |