Forum Discussion
Automated emails from table values
- 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 - Anonymous5 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 - yesterdayinvRETURNdiffi now records correctly and when added to flow as an alert works as intenededthank you again for your helpit is very much appreciated 😀
i have created a date table to filter data from my main table using
Anonymous Once you pin the card to a dashboard, you can click the "..." on the tile and set up the alert. No flow needed :).
You can also set them up with a flow too, if you don't want to create a dashboard.
- Anonymous5 years agoNot applicable
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 - yesterdayinvRETURNdiffi now records correctly and when added to flow as an alert works as intenededthank you again for your helpit is very much appreciated 😀- DataZoe5 years agoMicrosoft Employee
Anonymous that is awesome to hear!
- Anonymous5 years agoNot applicable
i have tested the above and the card still reads as zero even though 2 invoices are now due according to the measure. these are present in my filtered table
i have looked at the table and although i have only 2 invoices showing as due in the data section i can see each invoice has multiple rows, would this require a distinct count filter? i notice the readout at the bottom reads 36 rows disctinct count 2