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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
krrish116
Resolver II
Resolver II

Filtering a Calculated Measure

Hi @amitchandak ,

First of all Thank you for helping me and lot of people with your Answers in Power BI community..

If i Search something then most of the community answers are yours only.

 

Coming to My Issue,

I have created a measure 

Measure= IF( [Spend] = 0, "NA",
             IF([Value] > [ Spend],"NA",
             DIVIDE( [ Value],[Spend])
            ) )

The Measure is working fine and now i want to show the values of measure >30 and < 100 by using a slicer.

Can you help me out in solving this.

 

Thanks,

Krishh

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@krrish116 , At first look, it look like a case of segmentation using an independent table- https://www.youtube.com/watch?v=CuczXPj0N-k

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@krrish116 , At first look, it look like a case of segmentation using an independent table- https://www.youtube.com/watch?v=CuczXPj0N-k

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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 Thank you..

Hi,

Please sort this issue

Measure= 

IF(

   [Spend] = 0, Blank(),

    IF(

        [Value] > [ Spend],Blank(),

        DIVIDE( [ Value],[Spend])

     )

)

ProductSpendValueMeasure
ACIDS22562959599769927%
ADDITIVE PREBLENDS10200000519271%
ADDITIVES OTHER929899819649%
ALKALINE (CAUSTIC)250500007791208.631%
ANTIBLOCS1214000134711%
ANTIOXIDANTS3064303.38911183%
ANTISTATS46160001699654%
BAGS627502900046%
CATALYSTS7600000107500014%
CHEMICALS FOR POLYMER CATALYST PRODUCTION885000226852.336626%
CORRUGATED2620001000%
DRUMS100700013800014%
ELASTOMERS29677998.420165777%
FILLERS OTHER200000100005%
FLAME RETARDANTS36370659618%
GLASS FIBRE154688279119656%
LIGHT STABLIZERS5483741268%
METAL ALKYLS107310039186.705024%
MONOMERS7010000049000007%
PALLETS449329402%
PEROXIDES95000036087.64%
PIGMENT CONCENTRATES26192650.173073428.0412%
PIGMENTS28295710.511903241.7177%
POLYAMIDE270752801610518.446%
POLYESTER57000025670%
POLYETHYLENE232671521580458.287%
POLYMERS OTHER58764367501%
POLYPROPYLENE123226675.66101253.045%
SLIP AGENTS16593328352%
SPECIALTY PACKAGING MATERIALS60900163000268%
WATER AND PROCESS TREATMENT351900083900024%

 

So here i have to create a button. where if they click on that button, the measure

has to show values from 30 to100 % ..

So please help me out in doing this @amitchandak 

 

Thanks,

Krish..

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.