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
airportGR
Frequent Visitor

Count Timestamp Values from 2 columns on same table?

Hi all! 

 

I have tried to illustrate what I want to do using MS Excel. Say that we have 2 columns with sales timestamps of 2 products. 

 

How can we plot the count of these timestamps in a single table using specific time buckets?

 

Example below:

 

DATA  PRODUCT on Power BI  
      
Item 1 Sales Time BucketItem 2 Sales Time Bucket Time BucketsItem Sales 1Item Sales 2
12:0505:45 00:0000
15:4519:14 01:0000
12:0505:45 02:0000
15:4519:14 03:0000
12:0505:45 04:0000
15:4519:14 05:0009
12:0505:45 06:0000
15:4519:14 07:0000
12:0505:45 08:0000
15:4519:14 09:0000
12:0505:45 10:0000
15:4519:14 11:0000
12:0505:45 12:0090
15:4519:14 13:0000
12:0505:45 14:0000
15:4519:14 15:0090
12:0505:45 16:0000
15:4519:14 17:0000
   18:0000
   19:0009
   20:0000
   21:0000
   22:0000
   23:0000
   23:5900
1 ACCEPTED SOLUTION
SpartaBI
Community Champion
Community Champion

7 REPLIES 7
SpartaBI
Community Champion
Community Champion

@airportGR I created a solution in this file:
Time Bucket Count.pbix


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

Thank you very very much guys!

@airportGR 
my pleasure 🙂
Hey, check out my showcase report - got some high level stuff there 🙂
https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543
Give it a thumbs up if you liked it 🙂

airportGR
Frequent Visitor

Hi @ManguilibeKAO , yes. 

 

The output is the second table, the count of the 2 different timestamp columns based on provided time buckets. 

Hi,

 

Ok, I see. In this second table, only the column Time Buckets is filled. Could you also fill the the columns Item Sales 1 and Item Sales 2?

 

Best regards.

Done @ManguilibeKAO . The second table is a count of the two columns based on provided time buckets. 

ManguilibeKAO
Resolver I
Resolver I

Hi,

 

You have given us the input. Could you provide the output you want, given this input?

 

 

Best regards.

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.