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
Anonymous
Not applicable

Display data after every 30 mins

 

 Please help

This data below is in every 5mins. Please I want the data to display every 30mins. Please What column or measure or expression to achieve this??

 

 time.PNG

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

As a workaround, rather than creating a calculated table where date/time displays every 30 minutes, please add two calculated columns in original table 'A2011_ConfigData'.

Minute diff =
IF (
    MINUTE ( FORMAT ( A2011_ConfigData[DataTimePrevious], "hh:mm:ss" ) ) < 30,
    30 - MINUTE ( FORMAT ( A2011_ConfigData[DataTimePrevious], "hh:mm:ss" ) ),
    60 - MINUTE ( FORMAT ( A2011_ConfigData[DataTimePrevious], "hh:mm:ss" ) )
)

every 30 minutes =
SWITCH (
    A2011_ConfigData[Minute diff],
    5, A2011_ConfigData[DataTimePrevious] + TIME ( 0, 5, 0 ),
    10, A2011_ConfigData[DataTimePrevious] + TIME ( 0, 10, 0 ),
    15, A2011_ConfigData[DataTimePrevious] + TIME ( 0, 15, 0 ),
    20, A2011_ConfigData[DataTimePrevious] + TIME ( 0, 20, 0 ),
    25, A2011_ConfigData[DataTimePrevious] + TIME ( 0, 25, 0 ),
    30, A2011_ConfigData[DataTimePrevious] + TIME ( 0, 0, 0 )
)

 

Add 'A2011_ConfigData'[DataValueDelta] and 'A2011_ConfigData'[every 30 minutes] to your line chart.

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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

4 REPLIES 4
v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

What do you mean the calculated table does not responding to other charts, it doesnt respond appropriately like the original 5minutes chart data do? Do you mean the chart based on the calculated table doesn't show data conditionally according to the selection from slicer?

 

Based on my test, it did respond to the slicer selection, you coule see the difference from below screenshot. You can set the value range on Y-axis to a smaller value so that you can see the difference more clearly.

1.PNG

 

Regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

 Solved

 

 

 

Hi @Anonymous,

 

As a workaround, rather than creating a calculated table where date/time displays every 30 minutes, please add two calculated columns in original table 'A2011_ConfigData'.

Minute diff =
IF (
    MINUTE ( FORMAT ( A2011_ConfigData[DataTimePrevious], "hh:mm:ss" ) ) < 30,
    30 - MINUTE ( FORMAT ( A2011_ConfigData[DataTimePrevious], "hh:mm:ss" ) ),
    60 - MINUTE ( FORMAT ( A2011_ConfigData[DataTimePrevious], "hh:mm:ss" ) )
)

every 30 minutes =
SWITCH (
    A2011_ConfigData[Minute diff],
    5, A2011_ConfigData[DataTimePrevious] + TIME ( 0, 5, 0 ),
    10, A2011_ConfigData[DataTimePrevious] + TIME ( 0, 10, 0 ),
    15, A2011_ConfigData[DataTimePrevious] + TIME ( 0, 15, 0 ),
    20, A2011_ConfigData[DataTimePrevious] + TIME ( 0, 20, 0 ),
    25, A2011_ConfigData[DataTimePrevious] + TIME ( 0, 25, 0 ),
    30, A2011_ConfigData[DataTimePrevious] + TIME ( 0, 0, 0 )
)

 

Add 'A2011_ConfigData'[DataValueDelta] and 'A2011_ConfigData'[every 30 minutes] to your line chart.

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

Not sure what is your desired output. If you want the data to display every 30mins, how to deal with those records within 30 minutes? Also, how to deal with other columns in the same table?

 

If you want the time flow to be displayed every 30mins via removing extra records, you could new a calculated table with this formula:

filter time table = FILTER('TimeTable', MOD(MINUTE('TimeTable'[Time Flow]),30)=0)

 

For further analysis, please provide more information to better illustrate your scenario.

 

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.