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.
Hi All,
I am currently trying to create a card that counts the distinct number of campaigns after two filters are applied to a large table. The first filter is that column(wave) = 1 and the second is that a measure I created:
"Risk"
IF ( SELECTEDVALUE ( Query1[Wave] ) = 1 && [Delivery_Rate] < .85, 1, 0 )
Needs to equal 1. The final result should be a count of 2 but I either get 19(total number of unique campaigns in the table) or the following error:
"A Function 'Calculate' has been used in a True/False expression that is used as a table filter expression. This is not allowed."
I understand that the error is coming from the "Risk" measure but I am not sure of a way around that to get my solution. Any suggestions would help greatly!
Thank You,
Ryan
DAX attempts:
Example data:
ClientId | CampaignName | AssetName | Risk |
1 | Campaign1 | Asset1 | 1 |
2 | Campaign2 | Asset2 | 1 |
3 | Campaign3 | Asset3 | 0 |
4 | Campaign4 | Asset4 | 0 |
1 | Campaign5 | Asset5 | 0 |
1 | Campaign6 | Asset6 | 0 |
1 | Campaign7 | Asset7 | 0 |
1 | Campaign8 | Asset8 | 0 |
2 | Campaign9 | Asset9 | 0 |
2 | Campaign10 | Asset10 | 0 |
2 | Campaign11 | Asset11 | 0 |
2 | Campaign12 | Asset12 | 0 |
2 | Campaign13 | Asset13 | 0 |
2 | Campaign14 | Asset14 | 0 |
5 | Campaign15 | Asset15 | 0 |
5 | Campaign16 | Asset16 | 0 |
5 | Campaign17 | Asset17 | 0 |
5 | Campaign18 | Asset18 | 0 |
6 | Campaign19 | Asset19 | 0 |
PLease add the wave column to your sample data.
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 |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |