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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
AlbertPietens
Regular Visitor

Summarize timestamps per day in line chart

Hi all,

 

I have a realtime dataset (semantic model) with transactions with a timestamp, like 07-13-2024 06:23:33. I want to make a linechart that shows me the number of transactions per day. When I select a line chart it will show al the timestamps on de X-axis, so everytime it will be 1. Resulting in a flat chart that does not give any insight in volume per day. See image below.

AlbertPietens_0-1720857189622.png

 

 

Is it possible to summarize the number of transactions per day? Adding another table or data source is not possible because it requires met to switch to direct query in stead of the realtime data.

 

Help would be really appreciated.

1 ACCEPTED SOLUTION

If you can push the streaming dataset to a sql database and connect to it via direct query,   you can set the reprot page to refresh every few minutes.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi, @danextian 

thanks for your concern about this issue. 

Your answer is excellent! 

  

And I would like to share some additional solutions below.

 

Hi, @AlbertPietens 

According to your description, you want to Summarize timestamps per day in line chart? 

 

If I understand you correctly, then you can refer to my solution. 

 

After connecting to the data source in Desktop, You can use DAX formula to New Column: 

vfenlingmsft_0-1721121461456.png

 

 

Date = DATEVALUE(FORMAT(Table1[Timestamps], "MM/DD/YYYY"))

 

 

 

 

Then use this column in the visuals: 

vfenlingmsft_1-1721121515239.png

 

 

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.


Best Regards,
Fen Ling,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

danextian
Super User
Super User

Hi @AlbertPietens 

Does that realtime semantic model get stored in a data source Power Query can connect to? If so, you can parse the date from the timestamp and use that your chart isntead.

danextian_0-1720927524449.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Hi @danextian, It does not. I tried a few things and it resulted in me deleting the data in the model. So for now I chose to store the data in a regular Power Query and that fixes the issue. It creates a new issue with refreshing the data because I would like to do that every 5 minutes.

If you can push the streaming dataset to a sql database and connect to it via direct query,   you can set the reprot page to refresh every few minutes.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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