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
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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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