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! It's time to submit your entry. Live now!
Hi,
I have below data, I would like to add the column row number as a measure to flag the row number based on the date per ID.
I cann't add a calculated column because it is live connection to a cube.
Can you help?
plz check its performance time by performance analysis and make sure other measures are in optimize manner.
Hi @sabd80 ,
If you need to add a row number based on a date in a live connection to a cube in Power BI, you can achieve this by creating a measure.
DateRankByID =
VAR CurrentID = MAX(Sheet1[ID])
VAR CurrentDate = MAX(Sheet1[DATE])
RETURN
RANKX(
FILTER(
ALL(Sheet1),
Sheet1[ID] = CurrentID
),
CALCULATE(MIN(Sheet1[DATE])),
,
ASC,
DENSE
) If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 48 | |
| 35 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 142 | |
| 111 | |
| 65 | |
| 38 | |
| 33 |