web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Using Power Bi data to...
Power Automate
Unanswered

Using Power Bi data to generate weekly reports to send out by email

(0) ShareShare
ReportReport
Posted on by
Hi Everyone, 
 
Have to say at the beginning that i'm a complete newbie at this and definitely learning here so i apologize if there is something simple that i'm just not seeing.  
 
I have a visual table in Powerbi that i want to use to send out weekly emails to teams. 
 
Have two data sources in power bi. 
HIMS_Team with columns "partner", "team" 
pcli_vcenter with columns "partner, "vcenterbuild" etc.. 
 
so my powerbi table looks like this 
 
and my power automate flow looks like this: 
 
query: 
 
DEFINE
VAR __DS0FilterTable =
TREATAS({"No"}, 'pcli_vcenter'[AllPartnersHaveHighestVCenterBuild])

VAR __DS0Core =
SELECTCOLUMNS(
KEEPFILTERS(
FILTER(
KEEPFILTERS(
SUMMARIZECOLUMNS(
'HIMS_Teams'[Team],
'HIMS_Teams'[Partner],
'pcli_vcenter'[vCenterBuildNumber],
'pcli_vcenter'[AllPartnersHaveHighestVCenterBuild],
__DS0FilterTable,
"CountRowspcli_host", COUNTROWS('pcli_host'),
"CountRowspcli_vcenter", COUNTROWS('pcli_vcenter')
)
),
OR(
OR(
OR(
NOT(ISBLANK('HIMS_Teams'[Team])),
NOT(ISBLANK('HIMS_Teams'[Partner]))
),
NOT(ISBLANK('pcli_vcenter'[vCenterBuildNumber]))
),
NOT(ISBLANK('pcli_vcenter'[AllPartnersHaveHighestVCenterBuild]))
)
)
),
"'HIMS_Teams'[Team]", 'HIMS_Teams'[Team],
"'HIMS_Teams'[Partner]", 'HIMS_Teams'[Partner],
"'pcli_vcenter'[vCenterBuildNumber]", 'pcli_vcenter'[vCenterBuildNumber],
"'pcli_vcenter'[AllPartnersHaveHighestVCenterBuild]", 'pcli_vcenter'[AllPartnersHaveHighestVCenterBuild]
)

VAR __DS0PrimaryWindowed =
TOPN(
501,
__DS0Core,
'HIMS_Teams'[Team],
1,
'HIMS_Teams'[Partner],
1,
'pcli_vcenter'[vCenterBuildNumber],
1,
'pcli_vcenter'[AllPartnersHaveHighestVCenterBuild],
1
)

EVALUATE
__DS0PrimaryWindowed
 
 
 
then i parse it 
 
 
 
{
    "tables": {
        "type": "array",
        "items": {
            "type": "object",
            "properties": {
                "rows": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {
                            "HIMS_Teams[Team]": {
                                "type": "string"
                            },
                            "HIMS_Teams[Partner]": {
                                "type": "string"
                            },
                            "pcli_vcenter[vCenterBuildNumber]": {
                                "type": "string"
                            },
                            "pcli_vcenter[AllPartnersHaveHighestVCenterBuild]": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "HIMS_Teams[Team]",
                            "HIMS_Teams[Partner]",
                            "pcli_vcenter[vCenterBuildNumber]",
                            "pcli_vcenter[AllPartnersHaveHighestVCenterBuild]"
                        ]
                    }
                }
            },
            "required": [
                "rows"
            ]
        }
    }
}
 
 
 
and the idea is to create an html table that i can send out to the teams.  problem is that the only way the create table gives me any data is if use input like this: 
 
 
 
and even if picking custom columns...  i dont have the option to pick a table column.  
 
what am i doing wrong here?  
 
the email that i get is something like this 
 
and in creating the html table i can't name the columns or anything.  
 
 
any help would be really appreciated.  Again.. total newbie to powerbi and power automate 
Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard