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
Anonymous
Not applicable

Filter using measure

Hello All,

 

Need help in undestanding the filter function and apply for my use case.


I have 2 months of sales data (Jan and Feb) having both postive and negative values (for few rows) and i want to filter the visual to show rows having positive values only.

However, issue pops up in cases where Jan month is +ve and Feb month is -ve or vice-versa.

 

In short, how can i apply sales measure as a filter and show only +ve rows and apply across any/both months.

ignore rows where it has got both +ve and -ve values in the different months.

 

Please help.

1 ACCEPTED SOLUTION
harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

You can try.

 

Measure = If ([Sales] > 0 , [Sales] , BLANK())

 

Also,

 

You can create a Visual Filter

1.jpg

 

 

Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

 

 

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , You can create a positive measure like

sumx(table, if(table[value] =abs(table[Value]),Table[Value]))

 

 

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
Anonymous
Not applicable

Hi @Anonymous 

 

Can you upload the data in One Drive / Google Drive and share the link. 

 

Also for the sample data what is the ouput expected.

 

Best Regards

 

CheenuSing

harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

You can try.

 

Measure = If ([Sales] > 0 , [Sales] , BLANK())

 

Also,

 

You can create a Visual Filter

1.jpg

 

 

Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

 

 

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