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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.