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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
swwong1
Helper III
Helper III

Crtieria Table for Selected Sales

Hi All

 

https://www.dropbox.com/s/0sy7atxc8vpfo43/SPECIAL%20CLIENT%20REPORT.pbix?dl=0

 

I am trying to use a 'criteria' table to calculate the sales for those clients that meet the below criterias (such as type, date period, and country)

swwong1_0-1678806016847.png

I would like to display this information in one table so I can view both total sales and the 'selected sales' at a client level.

 

Have tried to use USERELATIONSHIP as they are inactive relationships but can't seem to show this properly based on the type and country.

 

swwong1_1-1678806107365.png

Thanks All!

 

 

 

 

1 REPLY 1
amitchandak
Super User
Super User

@swwong1 , Create a measure with removefilters or all to remove the filter of type and date

 

All sales = calculate(Sum(Table[sales]), removefilters(Table[Type], Table[Date]) )

 

or

 

All sales = calculate(Sum(Table[sales]), all(Table[Type], Table[Date]) )

 

Learn Power BI: All, allselected, removefilters,allexcept- https://www.youtube.com/watch?v=cN8AO3_vmlY&t=24270s

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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