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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Trying to sum values based on filter from another table that works with a slicer

RunningAnnualPercentReduced = CALCULATE(
	SUM('SCEN_COST (2)'[PRICE_RED_PRCNT]),
	ALLSELECTED('SCE_IMPORT (2)'[SCENARIO]))

When I run this it gives me the total sum of the values on card and does not work with a slicer I have in the report.

I've checked the relationships and they are good. I want the card to show the summed precantage of cost reduction 

based on the "Scenario field" in another table being used by the slicer. 

 

I've read through many discussions on this but I still can't find what I'm doing wrong. 

1 ACCEPTED SOLUTION

HI @Anonymous ,

Maybe you can take a look at following blog about direction of relationships:

What is the Direction of Relationship in Power BI?

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @Anonymous ,

What type relationship you use? single or cross filter direction?(single direction filter only works on one table side) It will be help if you share a sample pbix file for test.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

I will try switching the direction

to see if this helps.

I was hoping to get some instruction on how to call what the slicer chooses in DAX. 

Understanding the relationships and how it impacts each chart/card is something i'm still working on. 

HI @Anonymous ,

Maybe you can take a look at following blog about direction of relationships:

What is the Direction of Relationship in Power BI?

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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