Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi All, My PBI reports are working just fine but the problem is, it's having performance issue in my actual pbi, loading takes too much of time. But in my mockup pbi it's working fine. i think this is due to long queries of the dax measures.
Two measure that's needing simplifications
1.
I need to apply the same logic from the mockup pbi to my actual pbi and it's having performance issues, and i believe this is due to the long dax queries.Hoping that someone can guide me on this, thank you!
Solved! Go to Solution.
Hi,
please try the below two measures whether those suit your dataset.
Application date measure: =
VAR _latestdate =
MAX ( Student[Application Date] )
RETURN
IF ( HASONEVALUE ( Student[Student ID] ), _latestdate )
Status expected measure: =
VAR _maxdate = [Application date measure:]
VAR _maxstatuskey =
CALCULATE (
MAX ( Student[Application Status Key] ),
Student[Application Date] = _maxdate
)
RETURN
IF (
HASONEVALUE ( Student[Student ID] ),
CALCULATETABLE (
VALUES ( 'Status'[Status] ),
'Status'[Application Status Key] = _maxstatuskey
)
)
Hi,
please try the below two measures whether those suit your dataset.
Application date measure: =
VAR _latestdate =
MAX ( Student[Application Date] )
RETURN
IF ( HASONEVALUE ( Student[Student ID] ), _latestdate )
Status expected measure: =
VAR _maxdate = [Application date measure:]
VAR _maxstatuskey =
CALCULATE (
MAX ( Student[Application Status Key] ),
Student[Application Date] = _maxdate
)
RETURN
IF (
HASONEVALUE ( Student[Student ID] ),
CALCULATETABLE (
VALUES ( 'Status'[Status] ),
'Status'[Application Status Key] = _maxstatuskey
)
)
Thank you Jihwan for the help!
@Anonymous , seem like you need to get the latest status. refer if my code in the blog can help
https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0
Thank you for the guide sir
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |