Forum Discussion

fredborg's avatar
fredborg
New Member
8 years ago

streaming dataset show last non null

I have a streaming dataset, where i can query my data using the "ask questions" functionality. Now, when i tell powerbi to only show the last capacityupdate event we have in the system, it always wants to show me the last 5. I only want to see 1:

 

show last capacityupd-amp-prod by createdat 

 

Returns a result

CreatedAt     MinPower    MaxPower

31-10-12:00       0,75            21,5

31-10-08:00       0,75            19,5

30-10-12:00       0,75            0,75

30-10-12:00       0,0               0,0

29-10-12:00       0,75            21,5

 

I want to show the latest value (The top most row) in a Gauge on my dashboard. So that MaxPower is set to Maximum value, and MinPower is set to Minimum value.

 

How can i do this?

2 Replies

  • I have a streaming dataset, where i can query my data using the "ask questions" functionality. Now, when i tell powerbi to only show the last capacityupdate event we have in the system, it always wants to show me the last 5. I only want to see 1:

     

    show last capacityupd-amp-prod by createdat 

     

    Returns a result

    CreatedAt     MinPower    MaxPower

    31-10-12:00       0,75            21,5

    31-10-08:00       0,75            19,5

    30-10-12:00       0,75            0,75

    30-10-12:00       0,0               0,0

    29-10-12:00       0,75            21,5

     

    I want to show the latest value (The top most row) in a Gauge on my dashboard. So that MaxPower is set to Maximum value, and MinPower is set to Minimum value.

     

    How can i do this?

    • v-ljerr-msft's avatar
      v-ljerr-msft
      Icon for Microsoft Employee rankMicrosoft Employee

      Hi fredborg,

       

      After a few research and test, I don't think there is a way to do it with QA currently. Here is a similar idea shared on Power BI Ideas forum. You can vote it up and add your comments there to improve Power BI on this feature. :smileyhappy:

       

      Regards