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
amikm
Helper V
Helper V

display data in card visual as per slicer selection in two different slicer dynamically

Hi all,

I am using one card visual to display some data that is coming from table1[PerformanceRatio]. I have the same column in other tables as well table2[PerformanceRatio] and table3[PerformanceRatio]. I want to have a single card visual that should show PerformanceRatio, but the value of this PerformanceRatio should change as per table selection.

1 ACCEPTED SOLUTION
Tahreem24
Super User
Super User

@amikm Try these steps:

Step 1: Suppose you have two table like Table 1 and Table 2 (As per screen shot attached)

Step 2: Create new Table from "Enter Data" and make structure like this:

Step 1.PNG

Step 3: Then create a new measure under this table like below:

Measure =
VAR Selection_ = SELECTEDVALUE(TableName[TableName])
RETURN SWITCH(TRUE(),
Selection_ = "Table1",SUM(Table1[Ratio]),
Selection_ = "Table2",SUM(Table2[Ratio]),
SUM(Table1[Ratio])+SUM(Table2[Ratio]))
Step 2.PNG
Step 3: Then take Slicer from New Table created and one card and this New Measure on this card.
Step 4: When you make any selection on that slicer it will reflect accordingly.
Step 4.PNG
I hope I explained you well.
 
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

View solution in original post

3 REPLIES 3
Tahreem24
Super User
Super User

@amikm Try these steps:

Step 1: Suppose you have two table like Table 1 and Table 2 (As per screen shot attached)

Step 2: Create new Table from "Enter Data" and make structure like this:

Step 1.PNG

Step 3: Then create a new measure under this table like below:

Measure =
VAR Selection_ = SELECTEDVALUE(TableName[TableName])
RETURN SWITCH(TRUE(),
Selection_ = "Table1",SUM(Table1[Ratio]),
Selection_ = "Table2",SUM(Table2[Ratio]),
SUM(Table1[Ratio])+SUM(Table2[Ratio]))
Step 2.PNG
Step 3: Then take Slicer from New Table created and one card and this New Measure on this card.
Step 4: When you make any selection on that slicer it will reflect accordingly.
Step 4.PNG
I hope I explained you well.
 
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
amikm
Helper V
Helper V

The value of [Performance ratio] is numeric (decimal data type)

PhilipTreacy
Super User
Super User

Hi @amikm 

You have 2 slicers?  For 3 tables?

What aggregation of [Performance ratio] is being shown in the card.

Please supply some more details, and maybe some screenshots of your current visuals.

regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


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.

Top Solution Authors