March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi
A brief explanation. Of all invoices made in a month, 95% usually is sent as a letter. I'm going to decrease that percantage to, let's say 70% and want to show the cost reduction each month. So I want a measure or column that calculates 95% of all invoices made in a month and then a column or measure theat shows the variance from the actual % of letters sent (70%.)
Table looks like this:
Date | Total invoices made | Invoices sent as letter |
Jan/22 | 10000 | 9500 |
Feb/22 | 10000 | 8000 |
Mar/22 | 10000 | 7000 |
Hope it makes sense.
Solved! Go to Solution.
Hi @hans3400 ,
You can try this method:
New a measure:
DEC =
CALCULATE (
SUM ( 'Table'[Total invoices made] ) * 0.95
- SUM ( 'Table'[Invoices sent as letter] ),
FILTER ( 'Table', 'Table'[Date] )
)
The result is:
Hope these help you.
Here is my PBIX file.
Best Regards,
Community Support Team _Yinliw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @hans3400 ,
You can try this method:
New a measure:
DEC =
CALCULATE (
SUM ( 'Table'[Total invoices made] ) * 0.95
- SUM ( 'Table'[Invoices sent as letter] ),
FILTER ( 'Table', 'Table'[Date] )
)
The result is:
Hope these help you.
Here is my PBIX file.
Best Regards,
Community Support Team _Yinliw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank u so much for your help. It works as intended. Do u mind explaining what the last line does? "
FILTER ( 'Table', 'Table'[Date] )
I'm pretty new to PBI, so try to learn as much as possible.
Hi @hans3400 ,
This filter is used to filter dates by group.
Best Regards,
Community Support Team _Yinliw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
85 | |
69 | |
54 | |
45 |
User | Count |
---|---|
204 | |
106 | |
98 | |
65 | |
54 |