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.
I need to calculate:
When Payment_Type = 1
AND Service_Type = 1
Then multiple Payment_Type by Year_Rate
When I try:
Solved! Go to Solution.
Hi, @S_Berg
You can try the following methods.
Payment = CALCULATE ( SUM ( RATES[Year_Rate] ))
* CALCULATE ( COUNT ( FILES_PAYMENT[Payment_Type] ),
FILTER ( ALL ( FILES_PAYMENT ), [Payment_Type] = 1 && [Service_Type] = 1 )
)
If that doesn't resolve your issue, provide sample data and expected output.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @S_Berg
You can try the following methods.
Payment = CALCULATE ( SUM ( RATES[Year_Rate] ))
* CALCULATE ( COUNT ( FILES_PAYMENT[Payment_Type] ),
FILTER ( ALL ( FILES_PAYMENT ), [Payment_Type] = 1 && [Service_Type] = 1 )
)
If that doesn't resolve your issue, provide sample data and expected output.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hi @S_Berg
Could you help paste some sample data to help those who might be able to help you?
Try:
Payment= IF(AND(FILES_PAYMENT[Service_Type]= 1,FILES_PAYMENT[Payment_Type]= 1),[Year_Rate]*[Payment_Type])
You may run into errors depending on data type as this function assumes a number data type not a string.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |