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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
zsru1213
Regular Visitor

consolidate the date ranges for each class in power automate

Hi,

 

I'm providing the sample data not the real ones due to privacy issue.
I have a Power automate visual. When I click on it , It should read data from table visual in Power BI and consolidate the date ranges for each class and send an email.
I tried grouping by the class and extract min date and max date from the dataset but I'm getting output same as input. Can anyone please help me in providing the steps in power automate flow to get the desired result.

Thank you

Input:

DateRangeCategoryclassLoadTypeStatus
03/03/2025acanteendailyNo data
03/03/2025astudentdailyNo data
03/03/2025ateacherdailyNo data
03/03/2025acollegedailyNo data
03/03/2025abusdailyNo data
02/03/2025acanteendailyNo data
02/03/2025aexamdailyNo data
02/03/2025ateacherdailyNo data
02/03/2025acollegedailyNo data
01/03/2025acanteendailyNo data
01/03/2025astudentdailyNo data
01/03/2025acollegedailyNo data
28/02/2025aexamdailyNo data
28/02/2025ateacherdailyNo data
28/02/2025acollegedailyNo data
28/02/2025acanteendailyNo data
27/02/2025acanteendailyNo data
27/02/2025aexamdailyNo data
27/02/2025astudentdailyNo data
27/02/2025ateacherdailyNo data
27/02/2025acollegedailyNo data

 

 

Output:

 

dateCategoryclassLoadRTypeStaus
03/03/2025astudentdailyNo data
01/03/2025astudentdailyNo data
27/02/2025astudentdailyNo data
27/02/2025 to 28/02/2025ateacherdailyNo data
02/03/2025 to 03/03/2025ateacherdailyNo data
03/03/2025abusdailyNo data
27/02/2025 to 03/03/2025acanteendailyNo data
27/02/2025 to 03/03/2025acollegedailyNo data
27/02/2025 to 28/02/2025aexamdailyNo data
02/03/2025aexamdailyNo data
2 REPLIES 2
v-veshwara-msft
Community Support
Community Support

Hi @zsru1213 ,
Just wanted to check if the solution provided by @lbendlin  has met your needs. If yes, Please consider marking it as "Accepted Solution" to assist others with similar queries. If further assistance is needed, please reach out. Since this is related to Power Automate, you might also want to post it in the Microsoft Power Platform Community  for a wider audience and expert insights.
Thank you.

lbendlin
Super User
Super User

Use xpath.  Here is the general approach

 

Solved: Combine elements of an array with a field in common

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors