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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

IF Function

Hello, 

I'm still learning all of this DAX and Power BI function writing. I am trying to get the below to break out a column into 3 levels? It's only picking up the GOLD level. 

 

Unit Level = IF(SUM([Avg. Units])<9,"Blue",IF(SUM([Avg. Units])>=18,"Gold","Silver"))

OriginatorTotal UnitsTotal VolumeAvg. UnitsAvg. VolumeUnit Level
Spangler, Brady62$26,621,48520.66666667$8,873,828Gold
Hennessy, Matt55$12,639,67718.33333333$4,213,226Gold
Wickett, Michelle46$10,607,46415.33333333$3,535,821Gold
Smukalla, TC28$9,190,5679.333333333$3,063,522Gold
Sparks, Suzie19$8,625,0076.333333333$2,875,002Gold
Shtatman, Matthew32$8,512,15710.66666667$2,837,386Gold
Hobson, Richard18$8,446,1106$2,815,370Gold
Meyerink, Nicole25$7,390,5238.333333333$2,463,508Gold
Tschernia, Paul28$7,303,7909.333333333$2,434,597Gold
Julien, Amy30$6,798,51610$2,266,172Gold
Laughlin, Patrick18$6,171,3516$2,057,117Gold
Eaton, Julia14$6,161,5854.666666667$2,053,862Gold
Robertson, Rick13$6,013,6904.333333333$2,004,563Gold
Walsh, Michael24$5,822,7718$1,940,924Gold

 

My Avg Units Column is the sum of a calculated column so not sure if that is my hang up 

Avg. Units = CALCULATE(DISTINCTCOUNT('Last Quarter'[Loan Number])/3)

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I figured it out!!!! I had to make my expression a measurement and not a calculated column!!!! So embarassed thank you for your help~! 

View solution in original post

15 REPLIES 15

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.