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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Visual wih max value until slicer selected

Hi everyone, I have a problem and I doný know I can solve it.
I have a table like this:

Rick_ferreira_0-1628840120388.png

I need to build a visual table that when I select the month on slicer the table shows the type and the max value until this month and the date like this:

Rick_ferreira_1-1628840290493.png

Can anyone help me? Thanks.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous 

 

I used the following table as the example. Check the pbix if needed.

Vpazhenmsft_0-1629168372864.png

You can create the following measure, the calender table must disconnect with the this table.

Measure = IF(MAX([Value])=MAXX(FILTER(ALLSELECTED('Table'),[Type]=MAX([Type]) && [Date]<=SELECTEDVALUE('Calendar'[Date])),[Value]),MAX([Value]))
Vpazhenmsft_1-1629168485203.png

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
vanessafvg
Super User
Super User

you need to create a date table, in the date table you will have fields like date, month, year.  you connect your   table to the date table on date and then you can aggregate  your data at the month level

 

its easy to create a date table  see this page for pulling something together thats appropriate for you

 

https://www.sqlbi.com/articles/creating-a-simpler-and-chart-friendly-date-table-in-power-bi/

 

if you share some sample data in texxt form I can create a pbix example for you.

 

 

 

 

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

I have a calendar table.

Anonymous
Not applicable

@Anonymous 

 

I used the following table as the example. Check the pbix if needed.

Vpazhenmsft_0-1629168372864.png

You can create the following measure, the calender table must disconnect with the this table.

Measure = IF(MAX([Value])=MAXX(FILTER(ALLSELECTED('Table'),[Type]=MAX([Type]) && [Date]<=SELECTEDVALUE('Calendar'[Date])),[Value]),MAX([Value]))
Vpazhenmsft_1-1629168485203.png

Paul Zheng _ Community Support Team
If this post helps, please 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