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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
OP_1234
New Member

Grouping by Item and status, selecting max value and datediff and flagging specific Status

Hello Everyone,

I'm new to power BI and would really appreciate your help.

 

I have the following sample dataset (this sample only relates to 1 item):

IDStatusyear-monthItem_NumDays_In_Status
202212||11223344Offered for sale20221211223344212
202211||11223344Offered for sale20221111223344182
202210||11223344Offered for sale20221011223344152
202209||11223344Offered for sale20220911223344121
202208||11223344Offered for sale2022081122334491
202207||11223344Offered for sale2022071122334460
202301||11223344Sold202301112233440
202206||11223344Offered for sale2022061122334429
202102||11223344waiting2021021122334411
202202||11223344waiting2022021122334411
202101||11223344Rented2021011122334432
202205||11223344Rented2022051122334492
202204||11223344Rented2022041122334460
202203||11223344Rented2022031122334431
202201||11223344Rented20220111223344197
202112||11223344Rented20211211223344166
202111||11223344Rented20211111223344135
202110||11223344Rented20211011223344105
202109||11223344Rented2021091122334474
202108||11223344Rented2021081122334444
202107||11223344Rented2021071122334412
202106||11223344Rented20210611223344107
202105||11223344Rented2021051122334477
202104||11223344Rented2021041122334446
202103||11223344Rented2021031122334416

 

For my analysis, I would like:

1. To select, for each item and status, the max value of 'days_In_Status' and date.

2. To sum the time difference between 'Offered to sale' and 'Sold' 

3. To flag, in an added column, the items that were rented and then sold.

 

Can someone please guide me to the right solution?

Thank you. 

1 REPLY 1
shreyamukkawar
Resolver II
Resolver II

Hi @OP_1234 

Can you share the expected output(may be in excel) which will help to solve this scenario?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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