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
Anonymous
Not applicable

indexing

Hi everyone,

I have a problem and cannot solve

We have 2 offline shops, Shop A and Shop B, every shop have its own sales sorted by date.

I want to index that sales by date and by shop. 

 

example:

Shop name     Date                       Index

Shop A           15/12/18 12:14         1

Shop B           15/12/18 13:55         1

Shop A           15/12/18 19:00         2

Shop A           16/12/18 10:11         3

Shop A           16/12/18 10:14         4

Shop B           16/12/18 14:20         2

Shop A           16/12/18 18:30         5

Shop B           17/12/18 17:50         3

Shop A           18/12/18 12:01         6

 

......

 

Thanks for any help

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous

 

One way could be to use  a calculated column

 

Column =
RANKX ( FILTER ( Table1, [Shop name] = EARLIER ( [Shop name] ) ), [Date],, ASC )

Regards
Zubair

Please try my custom visuals

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous

 

One way could be to use  a calculated column

 

Column =
RANKX ( FILTER ( Table1, [Shop name] = EARLIER ( [Shop name] ) ), [Date],, ASC )

Regards
Zubair

Please try my custom visuals
Anonymous
Not applicable

thank you, appreciate

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.

Top Solution Authors