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
demokedes
Employee
Employee

Calculating a sum for each day

Dear all,

I am newibie in power bi. 

I am using Azure IoT hub for tracking measures from my IoT devices. Than I am streaming all this data into PowerBi Service. So i have different datasets. In one dataset, I am collecting duration of switches. 

Based on tha dataset, I would like to get overview for each particular day, what was the sum of duration. For each day, there are many switches. 

It will be easier to understand to look at attched screen. So for example instead of many different records for each day, I would like to get sum of all records for one day. How to achieve that?

Capture.JPG

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @demokedes ,

 

You can send data from stream analystics to Data Lake, and then use Power BI Desktop to connect to Data Lake to calculate a sum for each day.

You can also refer to this:https://codez.deedx.cz/posts/from-iot-hub-to-powerbi/ 

Extracting the date field from the time is helpful for your calculation.

 

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

View solution in original post

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @demokedes ,

 

You can send data from stream analystics to Data Lake, and then use Power BI Desktop to connect to Data Lake to calculate a sum for each day.

You can also refer to this:https://codez.deedx.cz/posts/from-iot-hub-to-powerbi/ 

Extracting the date field from the time is helpful for your calculation.

 

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

Greg_Deckler
Super User
Super User

It's been a little bit since I worked with streaming datasets. Is it a stream coming into Power BI, as in it comes in real time to a dashboard tile? If that is the case, as I recall you have very limited options in Power BI and you generally go through Azure Streaming Analytics to do any kind of aggregation/calculations.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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
Top Kudoed Authors