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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.