Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hello Experts,
I have one power bi report where I have two slicers (lists) and 1 clustered column chart. I want show the selected categories(Multiple selected) from the both the slicers in the single clustered column chart.
I have created fist DAX which gives me multiple selected options from the slicer(list)
MultiSelect =
IF (
ISFILTERED ( SiteCaseLoadComparison1[SiteCaseloadName] ),
CONCATENATEX (
ALLSELECTED ( SiteCaseLoadComparison1[SiteCaseloadName] ),
SiteCaseLoadComparison1[SiteCaseloadName],
","
),
"(All)"
)
I have created second DAX in which I am passing the first measure named 'MultiSelect' within IN function
FamilyCount_combined =
CALCULATE (
COUNT ( V_Comibined_Survey_Response[cra04_familyid] ),
FILTER (
V_Comibined_Survey_Response,
V_Comibined_Survey_Response[cra04_sitecaseloadname]
IN {
SELECTEDVALUE ( StateComparison1[State] ),
[MultiSelect]
}
)
)
but somehow this Measure is not giving the family count across multiselected categories from slicer.
can anyone help me with solving this?
any quick help is really appriciable.
Best Regards,
Pranesh
Solved! Go to Solution.
Hi, @pjakka
I agree with the above reply, but one more condition is needed.
FamilyCount_combined =
CALCULATE (
COUNT ( V_Comibined_Survey_Response[cra04_familyid] ),
FILTER (
V_Comibined_Survey_Response,
V_Comibined_Survey_Response[cra04_sitecaseloadname]
IN VALUES ( SiteCaseLoadComparison1[SiteCaseloadName] )
|| V_Comibined_Survey_Response[cra04_sitecaseloadname]
= SELECTEDVALUE ( StateComparison1[State] )// IN VALUES ( StateComparison1[State] )
)
)
Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.
Best Regards,
Community Support Team _ Janey
Hi, @pjakka
I agree with the above reply, but one more condition is needed.
FamilyCount_combined =
CALCULATE (
COUNT ( V_Comibined_Survey_Response[cra04_familyid] ),
FILTER (
V_Comibined_Survey_Response,
V_Comibined_Survey_Response[cra04_sitecaseloadname]
IN VALUES ( SiteCaseLoadComparison1[SiteCaseloadName] )
|| V_Comibined_Survey_Response[cra04_sitecaseloadname]
= SELECTEDVALUE ( StateComparison1[State] )// IN VALUES ( StateComparison1[State] )
)
)
Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.
Best Regards,
Community Support Team _ Janey
Hey @pjakka ,
the IN operator expects a table, but the measure MultiSelect returns a String.
Maybe this will already to the trick:
FamilyCount_combined =
CALCULATE (
COUNT ( V_Comibined_Survey_Response[cra04_familyid] ),
FILTER (
V_Comibined_Survey_Response,
V_Comibined_Survey_Response[cra04_sitecaseloadname]
IN
VALUES ( SiteCaseLoadComparison1[SiteCaseloadName] )
)
)
Hopefully, this provides what you are looking for.
Regards,
Tom
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
34 | |
32 | |
19 | |
12 | |
8 |
User | Count |
---|---|
52 | |
36 | |
29 | |
14 | |
12 |