Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi all,
I am looking to improve query performance. The report measures employee activity in a software, showing how many times someone "posted". I have a few lengthy measures in this report which are probably causing the visual on the right to be slow or even overflow. I have tried to clean it up a bit, but it is still pretty slow according to the Performance Analyzer. I would welcome any ideas here! I have attached the .pbix below.
Thanks!
- 170/243/8 refer to employee codes
https://drive.google.com/file/d/1pQH4V1aSxYVWnQd-QMcmknrwu_ImbQ_5/view?usp=sharing
Any ideas here? Would welcome any thoughts!
it seams more efficient to change the measure of Unproductive Time as this
Unproductive Time2 =
VAR _tbl =
SUMMARIZE ( 'Audit', Audit[code], Audit[master_key], Audit[trans_date] )
VAR UnproductiveMinutes =
SUMX (
_tbl,
VAR _c = Audit[trans_date]
VAR _p =
MAXX ( OFFSET ( -1, _tbl, ORDERBY ( Audit[trans_date] ) ), Audit[trans_date] )
VAR _min = ( _c - _p ) * 1440
RETURN
IF ( _min >= 10 && FORMAT ( _c, "yyyymmdd" ) = FORMAT ( _p, "yyyymmdd" ), _min )
)
VAR hourNo =
INT ( MOD ( UnproductiveMinutes, 1440 ) / 60 )
VAR minuteNO =
MOD ( MOD ( UnproductiveMinutes, 1440 ), 60 )
VAR secondNo =
INT ( ( UnproductiveMinutes - INT ( UnproductiveMinutes ) ) * 60 )
RETURN
IF (
NOT ISBLANK ( UnproductiveMinutes ),
FORMAT ( hourNo, "#0" ) & ":"
& FORMAT ( minuteNO, "#00" ) & ":"
& FORMAT ( secondNo, "#00" )
)
Thank you for this suggestion! It appears to slightly improve performance. Is there any way around a lengthy waiting process just due to the complexity of the measure?
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 |
---|---|
10 | |
9 | |
8 | |
8 | |
7 |
User | Count |
---|---|
13 | |
12 | |
11 | |
11 | |
8 |