Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi ,
I have a measure called num_users . Attached below is an excel format of the data . I am trying to create new measure : EARLIEST(num_users) and powerBI throws an error.
Thanks in advance.
Solved! Go to Solution.
HI @surendar12 ,
You can try to use following calculate column formula if it meets for your requirement:
Column =
VAR minPath =
CALCULATE (
MIN ( Table[Path_Sequence] ),
FILTER (
ALLSELECTED ( Table ),
[Event_Date] = EARLIER ( Tabel[Event_Date] )
&& [Category] = EARLIER ( Table[Category] )
)
)
RETURN
LOOKUPVALUE (
Table[Num_users],
Table[Event_Date], [Event_Date],
Table[Category], [Category],
Table[Path_Sequence], minPath,
MIN ( Table[Num_users] )
)
Regards,
Xiaoxin Sheng
HI @surendar12 ,
You can try to use following calculate column formula if it meets for your requirement:
Column =
VAR minPath =
CALCULATE (
MIN ( Table[Path_Sequence] ),
FILTER (
ALLSELECTED ( Table ),
[Event_Date] = EARLIER ( Tabel[Event_Date] )
&& [Category] = EARLIER ( Table[Category] )
)
)
RETURN
LOOKUPVALUE (
Table[Num_users],
Table[Event_Date], [Event_Date],
Table[Category], [Category],
Table[Path_Sequence], minPath,
MIN ( Table[Num_users] )
)
Regards,
Xiaoxin Sheng
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 130 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |