Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I want to filter the data based on "OR" conditions. So, I wrote the below code:
Solved! Go to Solution.
Please try this version of your measure
Revenue = CALCULATE(sum('values'[[Values]]]),'values'[GDR] IN {"BILLED_REVENUE", "UNBILLED_REVENUE"})
Also, it looks like you have extra square brackets in your SUM part. Please confirm that is correct.
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Hi,
Try this measure
Revenue = CALCULATE(sum('values'[Values]),filter('values','values'[GDR]="BILLED_REVENUE"||'values'[GDR]="UNBILLED_REVENUE"))
Hope this helps.
Please try this version of your measure
Revenue = CALCULATE(sum('values'[[Values]]]),'values'[GDR] IN {"BILLED_REVENUE", "UNBILLED_REVENUE"})
Also, it looks like you have extra square brackets in your SUM part. Please confirm that is correct.
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Thank you for the reply. For some reason the extra ] bracket is suggested by the intelligence. The code runs just fine with it.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |