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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Check data delivery still up-to-date

I'm trying to build alerts for our dataflows. I've build a tableprofile() in PowerQuery and need to see if the MAX of 1 of the columns is not to old. 

 

For this I'm trying to write a DAX code that when the date is below a certain threshold (e.g. a week old) it will show. So far I've haven't gotten very far. Hopefully someone knows a solution for this?

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

alerts = 

VAR _TODAY = TODAY()

VAR _MAX = MAX(Table[date])

Return

VALUE(_TODAY - _MAX)

 

vchenwuzmsft_0-1654588635683.png

Best Regards

Community Support Team _ chenwu zhu

 

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

4 REPLIES 4
selimovd
Super User
Super User

Hey @Anonymous ,

 

if you want to get the MAX from a column use:

Max Column = MAX( myTable[myColumn] )

 

Otherwise please provide an example, what the result is and what you would expect. That makes it easier to help you with your issue.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic

Anonymous
Not applicable

I've added an image of the Dashboard. The KPI only gives the date but you cannot give it a date a value for an alert. 

MdB_1-1654180191761.png

 

Hi @Anonymous ,

 

alerts = 

VAR _TODAY = TODAY()

VAR _MAX = MAX(Table[date])

Return

VALUE(_TODAY - _MAX)

 

vchenwuzmsft_0-1654588635683.png

Best Regards

Community Support Team _ chenwu zhu

 

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

Anonymous
Not applicable

This solution worked, thank you

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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

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