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
rbruce545
Frequent Visitor

Dynamic Slicer for Legend

I have tried transposing my data and making the legend dynamic based on the unpivotted attributes and values but because the dataset is very large there are performance issues. I would like to be able to select a value in a lookup table and then that will be used as the Legend on a graph. Is there away to do this without transposing the data?

4 REPLIES 4
CheenuSing
Community Champion
Community Champion

Hi @rbruce545 

 

Can you share more details ? If possible share your pbix file and the solution you expect on OneDrive or Google Drive and share the link here.

 

Cheers

 

CheenuSing

Did I answer your question? Mark my post as a solution and also give KUDOS !

Proud to be a Datanaut!

Date

CarVanNumber
01/05/2019WhiteBlack6
02/05/2019BlackRed5
03/05/2019BlackGreen1
04/05/2019BlueWhite3
05/05/2019GreenBlack8
06/05/2019GreenBlack4
07/05/2019WhiteBlue2
08/05/2019BlackGreen5
09/05/2019BlueRed8
10/05/2019RedWhite5

             

As a very simple example, I have the above. I want to plot the number on the y-axis, date on the x-axis and then in  slicer select car or van (from a lookup table) as the legend so there will be lines for the different colours. 

Hi @rbruce545 ,

 

Curious to know why the value for Number is same irrespective of whether Car or Van.

 

Cheers

 

CheenuSing

Did I answer your question? Mark my post as a solution and also give KUDOS !

Proud to be a Datanaut!

Hi @CheenuSing,

 

Purely for simplicity - my data is summarised in a similar way before I load it into Power BI,

 

Hope that helps

 

 

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.