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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
denengland
Frequent Visitor

Calculate sum based on two slicer excluding the value selected in first slicer

Hi there,

I am trying to create measures which will calculate sum of drug, and the sum of all other drugs belonging to the category which the selected drugs belong to.

 

I am new to dax, but i am trying to achieve this using two slicers

 

denengland_1-1681329244502.png

 

 

1 ACCEPTED SOLUTION
Wilson_
Super User
Super User

Hello denengland,

 

See this sample pbix file. Not sure where the second slicer comes into play here but maybe you need it for something else.

 

For what it's worth, SQLBI is a fantastic Power BI resource for everybody, especially beginners.


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

2 REPLIES 2
Wilson_
Super User
Super User

Hello denengland,

 

See this sample pbix file. Not sure where the second slicer comes into play here but maybe you need it for something else.

 

For what it's worth, SQLBI is a fantastic Power BI resource for everybody, especially beginners.


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





@Wilson, thank you for the solving this question. Your solution works perfectly. This is exaclty the response I was looking for. I will check out the SQLBI resource per your suggestion. I greatly appreciate your help!!!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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