The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello everyone,
I'm a new user of Power BI and need your help to solve the problem.
I have a data of customer who have unique identifier and corresponding date field.
I want to create field max date per client (takes maximum value noted per each client) and max date(takes maximum value for all the data). I tried to use max (date) function to create the last field but for each row I get different max values but I want max value to be fixed for each row.
Could you please help me to solve this issue?
Thank you in advance
Solved! Go to Solution.
use the following measures
maxDatePerClient =
CALCULATE ( MAX ( tbl[date] ), ALLEXCEPT ( tbl, tbl[id] ) )
maxDateAll= CALCULATE ( MAX ( tbl[date] ), ALL(tbl))
use the following measures
maxDatePerClient =
CALCULATE ( MAX ( tbl[date] ), ALLEXCEPT ( tbl, tbl[id] ) )
maxDateAll= CALCULATE ( MAX ( tbl[date] ), ALL(tbl))
Thank you very much!
User | Count |
---|---|
24 | |
9 | |
8 | |
7 | |
6 |
User | Count |
---|---|
29 | |
13 | |
11 | |
9 | |
9 |