Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi all,
I have set up the following measures to calculate the number of positive score as a % of total. Instead of including the filter (bold in the original method) to filter out the blank score in the measure, I tried to remove that from the measure but included it as a filter on visual (as shown in the amended method below) so that the measure can be used in other calculation too. While the denominator can be correctly filtered under the amended method, the non-blank values are not filtered out in the numerator. Any hints on why would that happened?
Thank you so much in advance!
Original method
@amitchandak @Ashish_Mathur Thanks for your contribution.
Hi @ahmchiu ,
@amitchandak provided some suggesiton on your problem. Have you gotten the soution? If yes, could you please mark your post as Answered? Otherwise, please provide some fake data to explain the requirement and your expected result just as @Ashish_Mathur suggested. Thank you.
Best Regards
Hi,
Share the download link of the PBI file. Also, show the incorrect answer and the expected result.
@Ashish_Mathur sorry, cannot upload th PBI file.. it is connected to my database....
@ahmchiu , Try one of the two
divide(
countx(values(contacts[id]), if(measurement[score] >= 0 && not(isblank(measurement[score])), [id], blank())),
countx(values(contacts[id]), if( not(isblank(measurement[score])), [id], blank())) )
or
divide(
countx(values(contacts[id]), if(measurement[score] >= 0 && not(isblank(measurement[score])), [id], blank())),
calculate(countx(values(contacts[id]), if( not(isblank(measurement[score])), [id], blank())), allselected()) )
Instead of putting "&& not(isblank(measurement[score]))" within the DX formula, I am trying to remove it from the formula and replace it using a visual filter. Is it possible?
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 22 | |
| 20 | |
| 14 | |
| 13 | |
| 13 |
| User | Count |
|---|---|
| 62 | |
| 40 | |
| 39 | |
| 39 | |
| 38 |