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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
swasim
Helper I
Helper I

Sparkline for Last 4 quarters but Columns values filtered for selected Quarter using Slicer.

Hi,

 

I am having trouble charting a Sparkline with SVG format for last 4 Quarters. All columns are in single table "Master".

 

Requirement :

 

1) I have a slicer with Date . When filtered for Current Quarter , all columns in the table should filter for current quarter but Sparkline should display for 4 Quarter from selected Quarter.

 

2)  Sparkline should be displayed for last 4 Quarters. - Issue i have .

 

Measure "Sparkline" is the actual SVG Sparkiline

and "Trend" Measure is something i was trying it out which wasnt working.

 

Attached the PBIX file and input excel file .  I have posted similar issue earlier but nothing got it solved and also similar threads are also still open . 

 

Experts please pitch in.

 

https://drive.google.com/drive/folders/1UwOhCvqex3Cmok7SEcdFDKwM6RW7Ks6m?usp=sharing

 

 

 

@tamerj1  

@v-yohua-msft

 

Attached PBIX file and input file.

9 REPLIES 9
Greg_Deckler
Super User
Super User

@swasim Responding to your private message, have you looked at this? SVG Sparklines - Line - Microsoft Fabric Community



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler  had a chance to look at this ? 

Yes I looked at that thread and created the std SVG sparkline . But that doesn't have sparkline ignoring date slicer which requires some measures to applied which I am unable to figure out 

swasim
Helper I
Helper I

@lbendlin  I think u misunderstood my requirements , i just posted a sample data , Actual data has it for last 2 yrs. 

Also the request is using SVG and it has multiple data points and colors for few points which i ignored the PBIX to keep it simple.

Can you look at the PBIX file and measure i tried.

Please provide sample data that fully covers your issue.
Please show the expected outcome based on the sample data you provided.

@lbendlin I wish i could do but Its in client network and cant share. I have resolved all other rewuirements, Need help Only on this Slicer based selection.

If data is choosen from Slicer , All columns should show for selected date and sparkline for last 4 quarters from selected Date which is in pbix file.

 

https://drive.google.com/drive/folders/1UwOhCvqex3Cmok7SEcdFDKwM6RW7Ks6m?usp=sharing

Sorry, I can only assist when you provide meaningful sample data.  I hope someone else can help you further. 

@lbendlin Have you look at the attachment ? PBIX file and excel file ? It has all the data for the request.

 

lbendlin
Super User
Super User

Do you need the gradient?  If not then you can add the default sparklines.

lbendlin_0-1710030877771.pnglbendlin_1-1710030902028.png

 

 

By the way, a sparlkine for just four data points doesn't make a lot of sense.

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.