Forum Discussion

swasim's avatar
swasim
Icon for Helper I rankHelper I
2 years ago

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

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

     

     

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

  • 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.

    • swasim's avatar
      swasim
      Icon for Helper I rankHelper I

      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