Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |