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
Macrosoft
New Member

Datastream - Latest Value only

I've created a streaming dataset in my Power BI Web environment. I need to show the live-data in a Dashboard.

 

Therefore I connected to the dataset in Power BI Desktop and I'm getting the data as expected:

Macrosoft_0-1656332140567.png

 

The problem occurs, when I want to show the latest value (percentage) only:
Sometimes it does show me the latest value, but it quite often doesn't return a value at all (-> blank).

Macrosoft_1-1656332608623.png


Similiar issues when I try to show N Top values only in a table: It doesn't return the requestet amount (e.g. I chose N=10, but getting back two values. After the next data push, I've got just 5 values listed....

Macrosoft_2-1656332897172.png

 

I've tried to create a measure as well, but same problem:

 

 

Most Recent Max Rate = 
VAR LatestTimestamp =
    MAX(RealTimeData[timestamp])
VAR LatestMaxRate =
    CALCULATE(
        MAX(RealTimeData[percent]),
        RealTimeData[timestamp]=LatestTimestamp
    )
RETURN
    LatestMaxRate

 

 

 

 

I suggest there might be a date formatting issue, but I've no idea how to solve it.

Macrosoft_3-1656333282146.png

 

Does anyone have an idea what I'm doing wrong here?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Macrosoft , try like

lastnonblankvalue( RealTimeData[timestamp], MAX(RealTimeData[percent]))

View solution in original post

2 REPLIES 2
Macrosoft
New Member

Hi @amitchandak 

Thanks a lot for your help.
It worked perfectly! I still don't kown what caused the issue, but I'm glad it works now 🙌🏼.

 

Cheers

amitchandak
Super User
Super User

@Macrosoft , try like

lastnonblankvalue( RealTimeData[timestamp], MAX(RealTimeData[percent]))

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.