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

Matching system time with table time and display goal value

Hello everyone, 


 

I am trying to get values from a table which has list of time values (e.g, 7:01 am, 7:02 am ...) and against every time value we have  defined goal. How I can extract specific value based on system time and display as KPI ? 

1 ACCEPTED SOLUTION

Hi @Anonymous 

I think you may want to see the values based on the system time.

You can achieve your goal by measure.

My Sample Table:

1.png

Measure:

System Time = 
VAR _NOW = NOW()
RETURN
TIME(HOUR(_NOW),MINUTE(_NOW),00)
Filter Measure = IF(MAX(Data[Time]) = [System Time],1,0)

Build a table visual and add Filter Measure into Filter Field, set it to show item when values is 1.

My system Time:

2.png

Refresh the desktop and it will show the value base on my system time.

3.png

You can download the pbix file from this link: Matching system time with table time and display goal value

 

Best Regards,

Rico Zhou

 

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

 

If you see there are two reports from different tables. both have time values as current time and time. I want to show current goal value according to system time which updated with system time

 

You can see these two table reports have time columns. I want to display current goal value on dashboard according to system timeYou can see these two table reports have time columns. I want to display current goal value on dashboard according to system time

Hi @Anonymous 

I think you may want to see the values based on the system time.

You can achieve your goal by measure.

My Sample Table:

1.png

Measure:

System Time = 
VAR _NOW = NOW()
RETURN
TIME(HOUR(_NOW),MINUTE(_NOW),00)
Filter Measure = IF(MAX(Data[Time]) = [System Time],1,0)

Build a table visual and add Filter Measure into Filter Field, set it to show item when values is 1.

My system Time:

2.png

Refresh the desktop and it will show the value base on my system time.

3.png

You can download the pbix file from this link: Matching system time with table time and display goal value

 

Best Regards,

Rico Zhou

 

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

 

Anonymous
Not applicable

current goal is on left table which have distinct values ending at 4342

camargos88
Community Champion
Community Champion

@Anonymous ,

 

Do you have an example ??

 

System time = now() ? If yes, you can extract the time from this function and work on it.



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



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.