Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
We have data in following format from Direct query and I need to filter a graph on last refresh time
i.e. timestampvalue from "TIMESTAMP" column equal to timestampvalue from "Current time"
tried below logic but it doesnt work
so if the current time is 8:04 AM then it should show only highlighted rows
Requirement is to show following table
Solved! Go to Solution.
Hi @sumneshnepalia ,
This logic you're talking about holds true in the row context when creating calculated columns:
And I created a measure, at this point the filter context works, you can also use SELECTEDVALUE instead of MAX:
You can test the formula I've given and let me know if you have any problems, or clarify in your next reply if I've misunderstood what you've said.
Best Regards,
Zhu
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the reply from lbendlin.
Hi @sumneshnepalia ,
please try the following DAX:
Measure=IF(HOUR(MAX('A'[TIMESTAMP]))&MINUTE(MAX('A'[TIMESTAMP]))=HOUR(NOW())&MINUTE(NOW()),1,0)
The visual is then filtered using measure:
Result:
Best Regards,
Zhu
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous I think this logic will compare max timestamp for the date but I need the flag for current time stamp = time stamp of the date
Hi @sumneshnepalia ,
This logic you're talking about holds true in the row context when creating calculated columns:
And I created a measure, at this point the filter context works, you can also use SELECTEDVALUE instead of MAX:
You can test the formula I've given and let me know if you have any problems, or clarify in your next reply if I've misunderstood what you've said.
Best Regards,
Zhu
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
what if you use a table visual and group by timestamp?
what if you use a table visual and group by timestamp?
@lbendlin how can I filter it for current timestamp as I have rows for eevery minute
Try it out. Power BI will automatically group for you.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
76 | |
61 | |
37 | |
33 |
User | Count |
---|---|
99 | |
56 | |
51 | |
42 | |
40 |