Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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"
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
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"
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
Hi Jihwan_Kim, thank you for that solution. That seems to have done the trick! 🤗
User | Count |
---|---|
15 | |
13 | |
12 | |
10 | |
10 |
User | Count |
---|---|
19 | |
15 | |
14 | |
11 | |
10 |