Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Automated emails from table values

i currently have a table that counts down the number of days from 180  to 0 to remind me when an invoice is due   does anyone know if there is a way to create an email alert to tell me when an invo...
  • DataZoe's avatar
    5 years ago

    Anonymous If you pin your card with # invoices at 0 to a dashboard you can set up an alert following this doc Set data alerts in the Power BI service - Power BI | Microsoft Docs.

     

    For your ask on the daily change alert, you can create a measure that populates a card that will only be the daily change and pin that to a dashboard and have the alert set up.  For example:

     

    Today Change Since Yesterday 0 Invoices =
    VAR yesterdayinv =
    CALCULATE (
    COUNTROWS ( 'Invoices' ),
    FILTER ( 'Invoices', [Days Until Due] <= 0 ),
    'Date'[Date]
    = TODAY () - 1
    )
    VAR todayinv =
    CALCULATE (
    COUNTROWS ( 'Invoices' ),
    FILTER ( 'Invoices', [Days Until Due] <= 0 ),
    'Date'[Date] = TODAY ()
    )
    VAR diff = todayinv - yesterdayinv
    RETURN
    diff

  • Anonymous's avatar
    Anonymous
    5 years ago

    DataZoe i have modified the measure you created as below

     

    Automated Email Alert =
    VAR yesterdayinv =
    CALCULATE (
    DISTINCTCOUNT('Filtered invoice Reminder Table'[Study Title]),
    FILTER ( 'Filtered invoice Reminder Table', [Days Till Next Invoice 2] = -2 ),
    'Filtered invoice Reminder Table'[Next Invoice Date]
    = TODAY ()
    )
    VAR todayinv =
    CALCULATE (
    DISTINCTCOUNT('Filtered invoice Reminder Table'[Study Title]),
    FILTER ( 'Filtered invoice Reminder Table', [Days Till Next Invoice 2] = -2 ),
    'Filtered invoice Reminder Table'[Next Invoice Date] = TODAY () +2
    )
    VAR diff = todayinv - yesterdayinv
    RETURN
    diff
     
    i now records correctly and when added to flow as an alert works as inteneded
     
    thank you again for your help
     
    it is very much appreciated ðŸ˜€