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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
RavM
New Member

Show last period values when no slicer selected

Hi,

 

I am currently reporting on our email consented community, which when the period slicer is selected is fine however when I clear the slicer, I get the sum of all periods. Rather than get the sum of all periods, is there a way to only show the latest period results? Below is an example:

 

BrandConsentedPeriod
Brand 11001
Brand 21501
Brand 31001
Brand 12502
Brand 22122
Brand 33502

 

For brand 1, when no slicer is selected, rather than see (P1 100 + P2 250) 350, I only want to see 250 which is the latest view. The sum of this field is irrelvant. Any help on this is greatly appreciated.

 

My data is set as follows:

 

Email Consent Table

*Brand

*Consented

*Period

 

Calendar Table

*Date

*Period

 

Thanking you all in advance.

 

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

Hi, @RavM ;

You could create a new table then create a measure.

1.create a table by dax as a slicer.

new = VALUES('Table'[Brand])

2.then create a measure.

Measure = IF(ISFILTERED('new'[Brand]),
CALCULATE(SUM('Table'[Consented]),FILTER('Table',[Brand] in VALUES(new[Brand]))), 
CALCULATE(SUM('Table'[Consented]),FILTER('Table',[Period]=CALCULATE(MAX('Table'[Period]),ALLEXCEPT('Table','Table'[Brand])))))

The final show:

vyalanwumsft_0-1666340703774.png

vyalanwumsft_1-1666340717893.png


Best Regards,
Community Support Team _ Yalan Wu
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

1 REPLY 1
v-yalanwu-msft
Community Support
Community Support

Hi, @RavM ;

You could create a new table then create a measure.

1.create a table by dax as a slicer.

new = VALUES('Table'[Brand])

2.then create a measure.

Measure = IF(ISFILTERED('new'[Brand]),
CALCULATE(SUM('Table'[Consented]),FILTER('Table',[Brand] in VALUES(new[Brand]))), 
CALCULATE(SUM('Table'[Consented]),FILTER('Table',[Period]=CALCULATE(MAX('Table'[Period]),ALLEXCEPT('Table','Table'[Brand])))))

The final show:

vyalanwumsft_0-1666340703774.png

vyalanwumsft_1-1666340717893.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors