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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
spartan27244
Resolver I
Resolver I

Exclusion

Looks like this did not poast the first time, so trying again. 

 

I am writing Medical reports and need to be able to compare results by exclusion. 

 

Example: I have classes of conditions that contain individual health conditions. The easy part is to just filter on a class to get the Med total paid. I need to compare this with the opposite, i.e. Med total paid for everyone not in that class that is filtered. 

I SQL I would do this by getting all people and remove the people that have the conditions within the class, then sum the Med total paid for these people. How do I do this within DAX?

 

Similarly: I want to see a med total for peopl who have any condition and contrast that with med total for people who do not have any condition.

3 REPLIES 3
Anonymous
Not applicable

Since you're new to these forums... Please first get familar with this: https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/td-p/1447523

 

Thanks.

Already read through it

Anonymous
Not applicable

OK. I'll give you a piece of free advice 🙂 If you don't get answers from anyone within a reasonable period of time, it means your description of the problem is not clear enough.

 

DAX can't be written in vacuum.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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