The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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:
How can I create it? What should be in x-axis and y-axis? Thanks
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"))
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"))
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
112 | |
80 | |
78 | |
43 | |
37 |
User | Count |
---|---|
157 | |
112 | |
64 | |
60 | |
54 |