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! Request now
Actual Code:
Its giving me the same Max Date against every record
Not too sure why?
Solved! Go to Solution.
@mayurbajaj - you can try this:
VAR meter =
SELECTEDVALUE( 'Bill Header'[Site Meter Identifier] )
VAR account_num =
SELECTEDVALUE( 'Bill Header'[Account Number] )
VAR calc =
CALCULATE (
MAX ( 'Bill Header'[Bill Start Date] ),
FILTER ( ALL ( 'Bill Header' ), 'Bill Header'[Site Meter Identifier] = meter, 'Bill Header'[Account Number] = account_num )
)
RETURN
calc
If this works, please mark it as the solution.
@mayurbajaj - you can try this:
VAR meter =
SELECTEDVALUE( 'Bill Header'[Site Meter Identifier] )
VAR account_num =
SELECTEDVALUE( 'Bill Header'[Account Number] )
VAR calc =
CALCULATE (
MAX ( 'Bill Header'[Bill Start Date] ),
FILTER ( ALL ( 'Bill Header' ), 'Bill Header'[Site Meter Identifier] = meter, 'Bill Header'[Account Number] = account_num )
)
RETURN
calc
If this works, please mark it as the solution.
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 | |
| 6 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 14 | |
| 8 | |
| 8 | |
| 8 |