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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Max date related valuesto display in the table and also day as Slicer

Hi, I have a table say SalesTable which shows the transactions based on the Date selection we make in the slicer.

 

Now, I also want this table to display the Max(Table[Date]) whenever the Dashboard is refreshed with data.

 

For Example, If I refresh the Dashboard today ie. 28th March it should display the Sales transaction which happened only on this date while we open the dashboard.

 

If we want to see Sales for some other day I should select it in Slicer and see corresponding Sales in the SalesTable.

 

May i know solution for both please?

 

Thanks!

2 REPLIES 2
v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

Please try this measure:

Sales measure =
IF (
    CALCULATE ( ISFILTERED ( TableName[Date] ), ALLSELECTED ( TableName[Date] ) ),
    SUM ( TableName[Sales Transaction] ),
    CALCULATE (
        SUM ( TableName[Sales Transaction] ),
        FILTER ( TableName, TableName[Date] = CALCULATE ( MAX ( TableName[Date] ), ALL ( TableName ) ) )
    )
)

1.PNG2.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

I think I have to correct my question. I need to display the max(Date) in a table chart which has Country, Sales, Sales person and so on. 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.