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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors