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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Happy2023_05
Helper I
Helper I

DAX Help

I want to achive the below logic in measure.pls help me.

If (variance)>=100% then I have to count(table[coln1]).

 

Variance  is a measure. DAx is not allowing to use 100% for measure in if condn.

2 REPLIES 2
amitchandak
Super User
Super User

@Happy2023_05 , if it has been marked as % that means 1 is 100%

a new measure

if([Variance] >1, count(Table[Column1]), [Variance])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Got it. When I keep the measure in card visual it shows blank so what I did is I created measure like this. Measure1=If([measure]>1,1,0)

so now I want to see the sum of the number of one's.

For eg

Category.   Measure. Measure1

Fruits.          101%.   1

Flowers.        101%.   1

Accessories   99%.  0

 

Now I should get value as 2 in card visual

I tried below measure but not working

 

If([measure]>1,count(category)) ths measure is showing blank n card visual.

 

 

 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors