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.
Hello everyone,
I have a problem calculating the total in a matrix visualization when using a measure with an if statement.
I created this simplified model to ask this doubt (that’s why some numbers don’t make sense, it’s just to express it with more clarity.
The goal is to create a measure that offers a 50% discount if the customers bought more than 40% regarding their target and no discount otherwise. Except just for customer C who will receive a 20% discount if he bought more than 10%.
I send the screens of what I have tried so far. I created the measure that shows the correct discount for every customer but it doesn’t show the correct amount for the total.
Base:
Base
Matrix and discount measure created:
Matrix
Thanks in advance!
Solved! Go to Solution.
Hi @Anonymous
You can create new measure
SUMX ( VALUES (base[customer]), [discount] )
It worked perfectly, thanks a lot!!
Hi @Anonymous
You can create new measure
SUMX ( VALUES (base[customer]), [discount] )
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 |
---|---|
19 | |
7 | |
6 | |
5 | |
4 |
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |