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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Kudoed Authors