Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Boja
Advocate II
Advocate II

Switch F-on Problem

Hello,

 

Could somebody please have a look at the switch measure and tell me why it is not working? it should show upper arrow.

 

Key = SWITCH( TRUE(),
[ver1 fb]<[ver2 fb], UNICHAR(9660),
[ver1 fb]>[ver2 fb], UNICHAR(9650),
UNICHAR(9644)
)

11.png  12.png

 

1 ACCEPTED SOLUTION
Boja
Advocate II
Advocate II

Strange, but the IF f-on works well in this case. Luckely, there is no need for more nested IFs 🙂

 

Key2 = 
IF(
[ver1 fb]<[ver2 fb], UNICHAR(9660),
IF( [ver1 fb]>[ver2 fb], UNICHAR(9650),UNICHAR(9644))
)

13.png

View solution in original post

4 REPLIES 4
Boja
Advocate II
Advocate II

Strange, but the IF f-on works well in this case. Luckely, there is no need for more nested IFs 🙂

 

Key2 = 
IF(
[ver1 fb]<[ver2 fb], UNICHAR(9660),
IF( [ver1 fb]>[ver2 fb], UNICHAR(9650),UNICHAR(9644))
)

13.png

Greg_Deckler
Community Champion
Community Champion

OK, that's the second one today that I can't recreate. I tried by entering in your data and then adding a calculated column. I used a calculated column because there is no aggregation that would indicate that it is a measure. I get up arrows. I'm on the March 2018 edition.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi Greg,

 

Actually there is aggreagation. Both var1 fb and var2 fb are counts of responses by different criteria. 

I am also working on the March edition, but will try to reinstall anyway.

 

do you maybe have another suggestion? thank you for support though 🙂

OK, so "var1 fb" and "var2 fb" are measures then. I'll try to recreate it with measures.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.