Hi to all,
I work daily with Power BI and i have to create an Schedule Flow to extract data from a dataset (Paginated report) and send to a list of users.
This email is sent with the "Apply to each", and everything is working fine, but i want to only send to the user that have data to see and don't send emails with blank tables.
I tried to create a query against a dataset but didn't have success with this measure:
COALESCE(
CALCULATE(
COUNTROWS(DataTable),
'Name-ID'[Name] = "@{variables('Name')}",
'Calendar'[Month (Year)] = "@{variables('LastMonth')}"
),
0)
It returns:
{"statusCode":"OK","headers":{}} And i wanted to see the number of rows and if it was more than 0, then send the email.
Any suggestions?