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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Shg
Frequent Visitor

How to use Power BI Sparkline like excel

Is it possible to create a sparkline in power bi desktop without using date. for example I have 3 columns which have their own values. I want to show these values in a column which is a sparkline exactly like spark line in excel. I need something like this in power bi: 

sindokht_0-1660499178574.png

 

How can I create it? What should be in x-axis and y-axis? Thanks

2 REPLIES 2
OzkanDhont
Resolver II
Resolver II

Hi @Shg !

 

A quick solution would be to split the columns up in different measures to get the required result.

Your sparkline would be your total measure in this case and a,b,c filtered measures.

Create a sorting column for a, b, c and apply it to your y-axis in your sparkline. (e.g. a=1, b=2, c=3)

 

Value a = CALCULATE(SUM([Value]),FILTER(TestSparklines,TestSparklines[Type] = "a"))

OzkanDhont_1-1660507451284.png

 

Hope it helps!

 

Kind regards,

OD

 

 

Many thanks, Could you explain how did you create  "Type", "Value" and index and sort based on the sample data? because "Type" and "Value" for instance is used in the formula below:

Value a = CALCULATE(SUM([Value]),FILTER(TestSparklines,TestSparklines[Type] = "a"))

 

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 MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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