cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors