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.
Hello,
My name is Javi and I am starting to use power Bi in my company.
I have a doubt with apply a value of filter in a if sentence.
This is my filter and I need to know its text value ( LRP1,LRP2,..) to use in a if sentence.
In this moment, I have it:
And I use it in a if:
It is a If sentence to calculate difference sums depends on FILTRO LRP value but I have an error.
Could I help me?
Many thanks.
Solved! Go to Solution.
You can try to create measures with following formulas.
FILTRO_LRP = IF ( HASONEVALUE ( Tipos[nombre] ), VALUES ( Tipos[nombre] ) )
LRP1 = IF ( [FILTRO_LRP] = "LRP1", 1, 2 )
Best Regards,
Herbert
You can try to create measures with following formulas.
FILTRO_LRP = IF ( HASONEVALUE ( Tipos[nombre] ), VALUES ( Tipos[nombre] ) )
LRP1 = IF ( [FILTRO_LRP] = "LRP1", 1, 2 )
Best Regards,
Herbert
It´s work. Thank you very much to all.
YOU SHOULD USE "ALLSELECTED" or "HASONEVALUE" function to get the value of slicer.
I am trying this but it does not work
User | Count |
---|---|
77 | |
74 | |
62 | |
61 | |
45 |
User | Count |
---|---|
108 | |
100 | |
91 | |
83 | |
61 |