Forum Discussion
Filter with measure
- Anonymous1 year ago
Hi Anonymous ,
Would you like to check if there are any rows in the M_Agg table where the CodZef value is equal to 2024 or FFR? If such rows exist, the measure will return 1; otherwise, it will return 0.
I’ve made a test and encountered the same issue you mentioned. You could try to use countrows instead as PowerNewUser mentioned, that is a good solution.
Here I have another idea in mind, and I would like to share it for reference.
1\My table
2\My measure
FilterCampFor2024 = If(IsBlank(CALCULATE(COUNT(M_Agg[CodZef]),M_Agg[CodZef]="2024")),0,1)FilterCampForFFR = If(IsBlank(CALCULATE(COUNT(M_Agg[CodZef]),M_Agg[CodZef]="FFR")),0,1)3\Result
Best Regards,
Bof
Hi Anonymous ,
Would you like to check if there are any rows in the M_Agg table where the CodZef value is equal to 2024 or FFR? If such rows exist, the measure will return 1; otherwise, it will return 0.
I’ve made a test and encountered the same issue you mentioned. You could try to use countrows instead as PowerNewUser mentioned, that is a good solution.
Here I have another idea in mind, and I would like to share it for reference.
1\My table
2\My measure
3\Result
Best Regards,
Bof