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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
FreemanZ
Super User
Super User

How to handle calculate then filter scenario?

With DAX, it is always easy to filter then calculate.  What if we have to calculate then filter?
 
Supposing we have a table with three columns: ReportMonth, Product, and SalesAmount. The requirement is to get the list of the Products with 0 SalesAmount in all ReportMonths.  How could it be done?
 
It would be super easy to have a intermediate physical calculated table. But how to do that without buiding a physical intermediate table?
I thought it would be easy to use SUMMARIZE + ADDCOLUMNS, but i don't know how to code for the added column.
Could you help?
1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @FreemanZ 

let's suppose you have a table visual sliced by ReportMonth and Product and you placed the Sales Amount measure along with them. Then you can go the filter pane of the table visual, select the Sales Amount measure, select "is" and type "0" then apply the filter

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

Hi @FreemanZ 

let's suppose you have a table visual sliced by ReportMonth and Product and you placed the Sales Amount measure along with them. Then you can go the filter pane of the table visual, select the Sales Amount measure, select "is" and type "0" then apply the filter

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.