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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
dmzhou
Regular Visitor

Group by rows based on different columns

Hi Experts, 

I have a requirement which needs your advice

Assuming I have data below

Customer

createTime

closeTime

a

2018-09-11

2018-09-23

b

2018-09-11

2018-09-25

Expecting the result below

Time

CreatedCustomer

ClosedCustomer

2018-09-11

2

0

2018-09-23

0

1

2018-09-25

0

1

 

 

 

 

 

 

How can I achieve this?

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @dmzhou,

 

You can refer to below link to create new table with expand detail date, then use this table to summary and calculate on records between two date columns:

Spread revenue across period based on start and end date, slice and dase this using different dates

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

HI @dmzhou,

 

You can refer to below link to create new table with expand detail date, then use this table to summary and calculate on records between two date columns:

Spread revenue across period based on start and end date, slice and dase this using different dates

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors