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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
WardWarrior
New Member

Dynamic chart showing multiple values from multiple slicer selection

Hi,

 

I have a table:

Table1=

Date | Attribute | Value

 

I have 18 attributes, i am trying to have a dynamic chart that can show the sum of multiple attributes selected in the slicer.

 

I have found an article that gets me close, however when selecting multiple values on the slicer it sums the outcomes together instead of showing each individually.

 

https://www.fourmoo.com/2017/08/08/power-bi-how-disconnected-slicers-can-enrich-transform-your-analy...

 

1) created a disconnected slicer with the 18 attributes.

2) created measure to sum values in table 1. 'Test' = SUMX(Table1, Values)

3) Created a measure as below, however my result is a summed total of more than one measure instead of two seperate values.

 

Distance (Selected) =
// This Variable is looking for the selected value from the Disconnected Slicer
// If nothing is selected then display "No Activity Selected"
VAR ActivitySelected = SELECTEDVALUE(Activity[Activity],"No Activity Selected")
// Now using an IF statement, we can then pass through the required values.
RETURN
// If nothing has been selected then return the entire distance
IF(ActivitySelected = "No Activity Selected",
        [Distance],
// Else if a value is selected the pass that value to the calculate below
CALCULATE(
            [Distance],
            Activities[Activity Type] =
 ActivitySelected
 )
)

 Any help is much appreciated 🙂

1 ACCEPTED SOLUTION

Hi @WardWarrior,

 

Based on your description, you want to select multiple values in a slicer simultaneously, right?

 

You can use “slicer” visual and select multiple values to filter line chart, you can download attached pbix file to have a look. 

 

 

q3.png

 

If above result doesn't meet your requirement, please clarify desired results based on sample data. 

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

 

Share some data and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks Ashish,

The expected result is to have a dynamic graph like the below examples (line graph etc) that is linked to the slicer.

The slicer allows one or more sets of data to be presented, i am having difficulty getting the 2nd set of data to display.

 

This is what my data looks like;

DateAttributeValue
01/08/2017StockPrice48.72
01/05/2017StockPrice49.81
01/02/2017StockPrice59.70
01/11/2016StockPrice66.68
01/08/2017Debt To Equity40.91
01/05/2017Debt To Equity38.26
01/02/2017Debt To Equity31.75
01/11/2016Debt To Equity36.70

 

Thanks

Hi @WardWarrior,

 

Based on your description, you want to select multiple values in a slicer simultaneously, right?

 

You can use “slicer” visual and select multiple values to filter line chart, you can download attached pbix file to have a look. 

 

 

q3.png

 

If above result doesn't meet your requirement, please clarify desired results based on sample data. 

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi,

 

I cannot understand your question.  Someone else who does will help you.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.