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,
I am calculating from respones of a questionaire. I calulate from two tables and want to subtotal values, which a measure calculated for each column:
Any input is welcome. I spend one day on this and cant crack the nut
Hey Hasham,
Thank you for your reply. I understand your approach, but it doesnt work. I have impelemented it and called Proportion2:
I cirquled the problem. If Factor occurs only one time I get a Subtotal, but as soon as it occurs multiple times I do not get a subtotal.
See row 8h
I have thought about creating a list with zeros if selectedvalue(...[Factor]) is empty. But does not work...
Thanks for your time!
Hi @Anonymous !
You are not getting [Proportion] measure or Total Shiptype value on your matrix because of following reason;
Your measure uses a SELECTEDVALUE('Category Percentage'[Factor]), while in the case of individual Category it's able to calculate the [Factor], but when you are at Column SubTotal, SELECTEDVALUE() has all the categories & unable to identify which [Factor] to use, you can try to nest it inside IF() as shown below;
IF(SELECTEDVALUE() > 1, Use Some other Value, SELECTEDVALUE())
You need to supply the value, what you want to use when SELECTEDVALUE() > 1
Regards,
Hasham
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 |
---|---|
23 | |
10 | |
10 | |
9 | |
7 |