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
Noak
Helper IV
Helper IV

Bar chart time referance

Hi,

currently Im working on big cloud project using your platform .

have some issues with the bar chart, my data includes:

X: Incoming message every 5 minutes .

y: AVG sum messages .

 

 

I would like to present msg only for past hour from NOW, and (if I can) to draw a line  as shows in the image (I would like to emphesis "Current" time on the line chart)..

 

 

 

please help me.

thank you!.

 

 

 

 

looking for solutionlooking for solution

 

 

 

 

BR,
Noa.
3 REPLIES 3
v-caliao-msft
Employee
Employee

Hi @Noak,

 

Add a calculated colume by using the DAX below.
Type = IF(DATEDIFF(Sheet7[DateTime],NOW(),MINUTE)<=60,"Latest Data","History Data")

Then add this new created column to a slicer visual.

Capture.PNG

 

Regards,

Charlie Liao

Greg_Deckler
Super User
Super User

You should be able to create a calculated column like:

 

HoursAgo = DATEDIFF([Date],NOW()),HOUR)

Then filter your chart by this column.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler @v-caliao-msft,

thank you for your help still having issues.

the PBI dont know to seperate different hourse at the same date.

lets say today 28/11 and yasterday was the 27/11 :

27/11 13:00 Hourse ago =24

27/11 12:00 Hourse ago =24

 

please via attached.

your help appriciated!.

 

PBI help.png

BR,
Noa.

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.