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

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]))

 

 

CheenuSing
Community Champion
Community Champion

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

Did I answer your question? Mark my post as a solution and also give KUDOS !

Proud to be a Datanaut!
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
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.