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.
Hello,
The attached PBIX file shows the issue. In essence, when using the measure (shown in the lower table), the slicer doesn't exclude any people. In the image below, I picked a specific facility (ID = 9), and as you can see, the top table shows only residents from that facility, whereas the lower table still shows residents from other facilities.
I can solve the problem using a calculated column, but I am trying to NOT create a calculated column if I can help it.
Click HERE to open the PBIX file. Then click the download button at top right to download the file. (See green arrow for download button).
Thank you in advance.
Solved! Go to Solution.
Hi,
I am not sure if I understood your semantic model correctly, but I suggest to try to start from the below measure. And then, I believe you can get to the goal that you need.
Weight Category Measure =
SWITCH (
TRUE (),
COUNTROWS ( Residents ) >= 1
&& ISBLANK ( MAX ( Residents[Weight] ) ), "No recorded weight",
COUNTROWS ( Residents ) >= 1
&& MAX ( Residents[Weight] ) < 30, "Under 30kg in weight",
COUNTROWS ( Residents ) >= 1
&& MAX ( Residents[Weight] ) > 130, "Over 130kg in weight",
COUNTROWS ( Residents ) >= 1, "Normal weight"
)
Hi,
I am not sure if I understood your semantic model correctly, but I suggest to try to start from the below measure. And then, I believe you can get to the goal that you need.
Weight Category Measure =
SWITCH (
TRUE (),
COUNTROWS ( Residents ) >= 1
&& ISBLANK ( MAX ( Residents[Weight] ) ), "No recorded weight",
COUNTROWS ( Residents ) >= 1
&& MAX ( Residents[Weight] ) < 30, "Under 30kg in weight",
COUNTROWS ( Residents ) >= 1
&& MAX ( Residents[Weight] ) > 130, "Over 130kg in weight",
COUNTROWS ( Residents ) >= 1, "Normal weight"
)
Hi Jihwan_Kim, thank you for that solution. That seems to have done the trick! 🤗
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 |
---|---|
20 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
24 | |
10 | |
10 | |
9 | |
6 |