cancel
Showing results for 
Search instead for 
Did you mean: 
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

Accepted Solutions
Super User III
Super User III

Re: indexing

@Anonymous

 

One way could be to use  a calculated column

 

Column =
RANKX ( FILTER ( Table1, [Shop name] = EARLIER ( [Shop name] ) ), [Date],, ASC )
Try my new Power BI game Cross the River

View solution in original post

2 REPLIES 2
Super User III
Super User III

Re: indexing

@Anonymous

 

One way could be to use  a calculated column

 

Column =
RANKX ( FILTER ( Table1, [Shop name] = EARLIER ( [Shop name] ) ), [Date],, ASC )
Try my new Power BI game Cross the River

View solution in original post

Anonymous
Not applicable

Re: indexing

thank you, appreciate

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors