Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi,
I have created a measure that calculates concurrent charging sessions of ev chargers. The issue is when looking at a date range of larger than a few days, the measures takes way too long to load. On the published online version of the report, the visuals simply don't load at all and return an error. For this measure to be useful I really need to be able to easily filter the date range to at least a month.
The measure itself is:
Solved! Go to Solution.
Hi @AlexS0902 - if your dataset allows, consider pre-filtering the transactions table based on the date range before applying the date and time filters. This can significantly reduce the number of rows that need to be evaluated.
slight modifications on measure:
ActiveChargingSessions =
VAR CurrentDateTime = MIN(TimeTable[TimeTable])
VAR FilteredTransactions =
FILTER(
'PowerBI - Transactions',
'PowerBI - Transactions'[start_charger_timestamp] <= CurrentDateTime &&
'PowerBI - Transactions'[session_finish_timestamp] >= CurrentDateTime
)
RETURN
COUNTROWS(FilteredTransactions)
can you please check this and let know.
Proud to be a Super User! | |
Hi @rajendraongole1 ,
Thank you so much. Your suggestion definitely helped. It still takes a little time to load but at least it does actually load and doesn't timeout.
It's still incredibly slow for when I'm using functions like MAXX and AVERAGEX with that same measure, so not sure if you have any further solutions to these? E.g.
Hi @AlexS0902 - if your dataset allows, consider pre-filtering the transactions table based on the date range before applying the date and time filters. This can significantly reduce the number of rows that need to be evaluated.
slight modifications on measure:
ActiveChargingSessions =
VAR CurrentDateTime = MIN(TimeTable[TimeTable])
VAR FilteredTransactions =
FILTER(
'PowerBI - Transactions',
'PowerBI - Transactions'[start_charger_timestamp] <= CurrentDateTime &&
'PowerBI - Transactions'[session_finish_timestamp] >= CurrentDateTime
)
RETURN
COUNTROWS(FilteredTransactions)
can you please check this and let know.
Proud to be a Super User! | |