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 using a measure with an if statement. I created this simplified model to ask this doubt.
The goal is to create a measure that:
- offers a 50% discount on books if customers bought more than 40% regarding the previous year and no discount otherwise
- offers a 20% discount on the other products (pens and pencils) if customers bought more than 30% regarding the previous year and no discount otherwise
- even if the above is fulfilled for some products, there will be no discount if in the sum of all the products the buyer didn't buy more than 10% compared to the previous year
I send the screen of the matrix summarizing what I should achieve:
Thanks in advance!
Sample data:
https://drive.google.com/drive/folders/14_aZz5wd2W6SdXZoWwTfPX_JXQUBh2k4?usp=sharing
@Anonymous hi! can you paste the sample data?
Thx,
BBF
Yes, I have just edited the post and uploaded it, thanks!
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 |
---|---|
18 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
23 | |
10 | |
10 | |
9 | |
7 |