cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
DataDownUnder
Helper I
Helper I

Return a list of column values with a filter

Im sure this is simple and I am overthinking it.

 

I am adding a sparkline to a revenue visual, I only want to show dyanmically the last 2 periods of revenue in the spark line for the trend.

 

For the X axis of the Sparkline I need to add a measure which restricts the Periods to only the last 2 periods.

 

How do I use a measure to show a filtered list of values from a table column?

I can genereate a condition which tells me current period-2,  so I need to show periods in the date table which are >= current period

 

 

My <period table> is 

 

Period

1

2

3

4

5

6

7

8

9

10

11

12

 

1 ACCEPTED SOLUTION
DataDownUnder
Helper I
Helper I

Just found that this is not possible as measures can not be used for X axis in the sparkline.  Instead a relative date filter is required on the visual

View solution in original post

1 REPLY 1
DataDownUnder
Helper I
Helper I

Just found that this is not possible as measures can not be used for X axis in the sparkline.  Instead a relative date filter is required on the visual

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors