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 Fellas,
i have this DAX calculation to format display unit
SWITCH( TRUE(),
SELECTEDVALUE(v_dim_produit[commodity_name]) = "ELEC", "#,0.00 €/MWh",
FILTERS(v_dim_produit[commodity_name]) in {"Charbon UE", "GAZ Peg", "Gaz TTC"}, "#,0.00 €/Baril",
"#,0.00€")
and i get these error for the second case of my switch() function :
Thanks in advance 😄
Solved! Go to Solution.
Hello @ferhat_lyes ,
try the following
Measure = SWITCH( TRUE(),
SELECTEDVALUE(v_dim_produit[commodity_name]) = "ELEC", "#,0.00 €/MWh",
SELECTEDVALUE(v_dim_produit[commodity_name]) in {"Charbon UE", "GAZ Peg", "Gaz TTC"}, "#,0.00 €/Baril",
"#,0.00€")
Proud to be a Super User! | |
Hello @ferhat_lyes ,
try the following
Measure = SWITCH( TRUE(),
SELECTEDVALUE(v_dim_produit[commodity_name]) = "ELEC", "#,0.00 €/MWh",
SELECTEDVALUE(v_dim_produit[commodity_name]) in {"Charbon UE", "GAZ Peg", "Gaz TTC"}, "#,0.00 €/Baril",
"#,0.00€")
Proud to be a Super User! | |
Thank you too much
User | Count |
---|---|
80 | |
77 | |
63 | |
48 | |
44 |
User | Count |
---|---|
101 | |
43 | |
39 | |
39 | |
36 |