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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
SUMESHKUMAR22
Helper III
Helper III

Create Small Multiple Line chart without legends

Hi Team, 

Purpose: To reduce the number of visuals on the page.
Looking for as solution to implement  small multiples (line chart) but without any legends in use, just using KPI's as the legends.
In below screenshot, I want to club all these selected line charts Metrics into 1 line chart using small multiples feature.

SUMESHKUMAR22_0-1725015287363.jpeg


FYI, the scaler numbers is shown using New card visual.

SUMESHKUMAR22_2-1725016406151.jpeg


Please help with any workarounds reference/ sample solution file.

Regards,
Sumesh

2 ACCEPTED SOLUTIONS
Ritaf1983
Super User
Super User

Hi @SUMESHKUMAR22 
If you want to stay with the new cards you can use a svg sparklines to achieve something similar.
Please refer to the linked video ( from 12 minute ) :
https://www.youtube.com/watch?v=oHAeKf04ne8

If you want a small multiple you can instead of using dynamic measure and text boxes like :

Ritaf1983_0-1725158847605.png

To achieve it, you can create a disconnected table like :

Ritaf1983_1-1725158959311.png

 

Sort the measures by needed order :

Ritaf1983_2-1725159032120.png

Create standard needed measures :

Total Sales = DIVIDE(SUM(Sales[Sales]),1000)
Total profits = Divide (sum('Sales'[Profits]),1000)
profits% = DIVIDE([Total profits],[Total Sales])*100

Create a dynamic measure :

Dynamic measure = SWITCH(SELECTEDVALUE('Table'[Measure]),
"Sales",[Total Sales],
"Profits",[Total profits],
[profits%])
This dynamic measure will be on the Y axis for small multiples :
Ritaf1983_3-1725159462388.png

The next step is creating the titles for every section:

Title for Sales =
"Sales K/$ :" & [Total Sales]
Title for profits =
"Profits K/$ :" & [Total profits]
Title for profits % =
"Profits % :" & FORMAT( [profits%]/100,"0.0%")
 Now you can take these titles to text boxes and put them on the graph
Ritaf1983_4-1725159747352.png

Result (ignore the blue lines they will not be shown after publishing)

Ritaf1983_5-1725159819062.png

You can also group all the elements together:

Ritaf1983_6-1725159869690.png

The pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

Hi @SUMESHKUMAR22 
To mark the last point and that label on a small multiple you can apply these steps:

1. Create a Dax measure for the color, which will be with the color you need if we are on the last point, and white transparent if we are not :

last point color = if (SELECTEDVALUE('Calendar'[Month])<>calculate(max('Calendar'[Month]),ALLSELECTED('Calendar'[Month])),"#FFFFFF00","Blue")
2. Change the graph type to the clustered / stacked columns :
Ritaf1983_0-1725242168141.png

3. Modify conditional formatting for column color based on the measure that we created:

Ritaf1983_1-1725242319093.pngRitaf1983_2-1725242390880.png

Now change the graph back to line:

Ritaf1983_3-1725242434130.png

6. Do the same conditional formatting trick with the data labels, based on the same measure :

Ritaf1983_4-1725242567485.png

Result :

Ritaf1983_5-1725242637323.png

The updated pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
SUMESHKUMAR22
Helper III
Helper III

@Ritaf1983 , thanks for the detailed solution 🙂
How  we can display the maxdate datapoint & display value label for that on the line viz?

Thanks,

Ritaf1983
Super User
Super User

Hi @SUMESHKUMAR22 
If you want to stay with the new cards you can use a svg sparklines to achieve something similar.
Please refer to the linked video ( from 12 minute ) :
https://www.youtube.com/watch?v=oHAeKf04ne8

If you want a small multiple you can instead of using dynamic measure and text boxes like :

Ritaf1983_0-1725158847605.png

To achieve it, you can create a disconnected table like :

Ritaf1983_1-1725158959311.png

 

Sort the measures by needed order :

Ritaf1983_2-1725159032120.png

Create standard needed measures :

Total Sales = DIVIDE(SUM(Sales[Sales]),1000)
Total profits = Divide (sum('Sales'[Profits]),1000)
profits% = DIVIDE([Total profits],[Total Sales])*100

Create a dynamic measure :

Dynamic measure = SWITCH(SELECTEDVALUE('Table'[Measure]),
"Sales",[Total Sales],
"Profits",[Total profits],
[profits%])
This dynamic measure will be on the Y axis for small multiples :
Ritaf1983_3-1725159462388.png

The next step is creating the titles for every section:

Title for Sales =
"Sales K/$ :" & [Total Sales]
Title for profits =
"Profits K/$ :" & [Total profits]
Title for profits % =
"Profits % :" & FORMAT( [profits%]/100,"0.0%")
 Now you can take these titles to text boxes and put them on the graph
Ritaf1983_4-1725159747352.png

Result (ignore the blue lines they will not be shown after publishing)

Ritaf1983_5-1725159819062.png

You can also group all the elements together:

Ritaf1983_6-1725159869690.png

The pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Hi @SUMESHKUMAR22 
To mark the last point and that label on a small multiple you can apply these steps:

1. Create a Dax measure for the color, which will be with the color you need if we are on the last point, and white transparent if we are not :

last point color = if (SELECTEDVALUE('Calendar'[Month])<>calculate(max('Calendar'[Month]),ALLSELECTED('Calendar'[Month])),"#FFFFFF00","Blue")
2. Change the graph type to the clustered / stacked columns :
Ritaf1983_0-1725242168141.png

3. Modify conditional formatting for column color based on the measure that we created:

Ritaf1983_1-1725242319093.pngRitaf1983_2-1725242390880.png

Now change the graph back to line:

Ritaf1983_3-1725242434130.png

6. Do the same conditional formatting trick with the data labels, based on the same measure :

Ritaf1983_4-1725242567485.png

Result :

Ritaf1983_5-1725242637323.png

The updated pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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