Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi,
I have a dax measure to show an specific message on card when I have Blank values in manufacturer column inside the table,
But when a Filter nothing or I select two or more values without Blank value this message shows on card but i Want to show nothing for this case.
My dax:
1- when a Filter nothing. Want to show nothing message for this case.
2- It's ok for one value with manufacturer no blank
3 - I select two or more values without Blank value this message shows on card but i Want to show nothing for this case.
Someone could help me with that?
Thank you
Solved! Go to Solution.
Add one more condition like below in your if else statement
CALCULATE(
INT ( NOT ( ISEMPTY( Manufaturer) ) ),
TREATAS (
VALUES ( Merge1[Manufaturer] ),
Merge1[Slicer]
)
)>1
then "Your Condition"
I think this DAX code solve your problem. You should put the messages that you want in each scenario.
DAX =
SWITCH(TRUE(),
NOT(ISFILTERED(Merge1[Manufaturer])),"Nothing filtered",
HASONEVALUE(Merge1[Manufaturer]), "One manufacturer",
NOT(HASONEVALUE(Merge1[Manufaturer])), "Multiple values"
)
Scenario 1:
Scenario 2:
Scenario 3:
Proud to be a Super User!
I think this DAX code solve your problem. You should put the messages that you want in each scenario.
DAX =
SWITCH(TRUE(),
NOT(ISFILTERED(Merge1[Manufaturer])),"Nothing filtered",
HASONEVALUE(Merge1[Manufaturer]), "One manufacturer",
NOT(HASONEVALUE(Merge1[Manufaturer])), "Multiple values"
)
Scenario 1:
Scenario 2:
Scenario 3:
Proud to be a Super User!
Add one more condition like below in your if else statement
CALCULATE(
INT ( NOT ( ISEMPTY( Manufaturer) ) ),
TREATAS (
VALUES ( Merge1[Manufaturer] ),
Merge1[Slicer]
)
)>1
then "Your Condition"
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
85 | |
66 | |
66 | |
50 | |
31 |
User | Count |
---|---|
113 | |
95 | |
75 | |
64 | |
40 |