The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi Expert,
Have 2 columns in dimension which shows currently in dimension as we did not sum it but wanted to see the subtotal for the same in mdx query
i.e.
col1 col2 required column in should show same values without doing sum but should show the sumtotal and max mean
a 40 40
b 60 60
Total 100
suggestion please
Hi @Shreesefwere ,
I think you want to sum the max col2 per col1 in subtotal.
My Sample:
You can try this code to create a measure.
Sum of Max col2 =
SUMX(SUMMARIZE('Table','Table'[col1],"Max col2",MAX('Table'[col2])),[Max col2])
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
i just want subtotal of the col2 without changing the values on row level
for an example : a comes forr 3 times and so it should not sum but only show subtotal
a 10
a 10
a 30
T 40
Hi @Shreesefwere ,
I think you can try this code to create a measure.
Subtotal =
SUMX(DISTINCT('Table'[Col2]),[Col2])
My Sample:
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
suggestion please
suggestion pls
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
82 | |
65 | |
53 | |
52 |
User | Count |
---|---|
128 | |
115 | |
80 | |
65 | |
63 |