Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi,
I'm trying to run a dax statement ----->>
Measure 5 =
VAR SelectedState =
CALCULATE (
[Measure 3],
INTERSECT (
VALUES ( Qualifiers[State] ),
VALUES ('Table 6'[State])
)
) VAR UnSelectedState =
CALCULATE (
[DSA_FallOut],
EXCEPT (
ALLSELECTED(Qualifiers[State] ),
VALUES ( Qualifiers[State] )
)
) VAR AllState =
CALCULATE (
[DSA_FallOut]*1,
ALL(Qualifiers[State]) )
RETURN
IF (
HASONEVALUE( Qualifiers[State] ),
SWITCH(
VALUES(Qualifiers[State]),SELECTEDVALUE(Qualifiers[State]),
SelectedState,
UnSelectedState
),AllState
)
So if Hasonevalue() is true, it should give me the Value of "SelectedState","UnSelectedState", which is working fine but it doesn't give me "AllState" value for else statement.
Solved! Go to Solution.
Hi @Anonymous,
Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered?
Regards,
Daniel He
Hi @Anonymous,
Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered?
Regards,
Daniel He
Hi @Anonymous,
From your formula, if the HASONEVALUE() is false, it will give you the "AllState" value, you could check if the formula
HASONEVALUE( Qualifiers[State] ) has the false value.
Also, could you please share a pbix to have a test if possible? You could upload your file to OneDrive or Dropbox and send the link here.
Regards,
Daniel He
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
84 | |
84 | |
65 | |
62 | |
55 |
User | Count |
---|---|
171 | |
110 | |
109 | |
73 | |
71 |