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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Svitzer
New Member

Only show recent value when using slicer (Jan22-Apr22 must only show Apr22 value)

Dear members,

 

I'm creating a 2022 report that shows the # of customers per month in a bar chart (Jan22-Dec22), but also as a tile with 1 number in it: the most recent value of the # of customers when you change the slicer to a specific month.

 

Jan22 = 100 total customers

Feb22 = 110 total customers (so +10 vs last month)

Mar22 = 105 total customers (so -5 vs last month)

 

When I use the slicer for the period 1-1-2022 to 31-03-2022, it is currently showing the sum of the # of customers: 315

However I would like to show the last value, so # of customers is 105.

 

When I would change the slicer to 1-1-2022 to 28-02-2022 it should show 110, etc.

 

I have added an Index column, but not sure what the next step is. Please advice.

Greatly appreciated!

 

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @Svitzer ,

I created some data:

vyangliumsft_0-1656056263234.png

Here are the steps you can follow:

1. Create measure.

Measure =
var _max=MAXX(ALLSELECTED('Table'),[Date])
return
CALCULATE(SUM('Table'[Amount]),FILTER(ALL('Table'),'Table'[Date]=_max))

2. Result:

vyangliumsft_1-1656056263235.png

If I have misunderstood your meaning, please provide your desired output and your pbix without privacy information.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

3 REPLIES 3
v-yangliu-msft
Community Support
Community Support

Hi  @Svitzer ,

I created some data:

vyangliumsft_0-1656056263234.png

Here are the steps you can follow:

1. Create measure.

Measure =
var _max=MAXX(ALLSELECTED('Table'),[Date])
return
CALCULATE(SUM('Table'[Amount]),FILTER(ALL('Table'),'Table'[Date]=_max))

2. Result:

vyangliumsft_1-1656056263235.png

If I have misunderstood your meaning, please provide your desired output and your pbix without privacy information.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Thank you @v-yangliu-msft 

Hi,

Share the download link of your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

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