Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi,
I have inserted a table in visualization in which columns are taken from different tables. I want a column in which serial no. comes
Solved! Go to Solution.
Hi @IshaDahra,
Use below DAX
S.No =
RANKX(
SUMMARIZE(
ALLSELECTED('FACT_STORY'),
'FACT_STORY'[Number],
"MinUpdated", MIN('FACT_STORY'[Updated])
),
[MinUpdated],
,
ASC,
DENSE
)
Hi @IshaDahra,
I wanted to follow up on our previous suggestions regarding the issue. We would love to hear back from you to ensure we can assist you further.
Thank you.
Hi @IshaDahra,
Thank you @Praful_Potphode and @grazitti_sapna for your response to the query.
we haven't heard back from you regarding our last response and wanted to check if your issue has been resolved.
Should you have any further questions, feel free to reach out.
Thank you for being a part of the Microsoft Fabric Community Forum!
Hi @IshaDahra
You can create visual calculation(Select Your Visual->Home->New Visual Calculation) like below in your visual:
Order by can be changed based on your requirement.
RowNumber = FORMAT(
ROWNUMBER(
ROWS,
ORDERBY([reporting year],ASC)
)
,"0"
)
Please give kudos or mark it as solution once confirmed.
Thanks and Regards,
Praful
Hi @IshaDahra,
You can use below DAX
Serial No =
RANKX(
ALLSELECTED(
'Table1'[Column1],
'Table2'[Column2],
'Table3'[Column3]
),
CALCULATE(1),
,
ASC,
DENSE
)
If you have one key column in table you can use it like below
Serial No =
RANKX(
ALLSELECTED(FactTable[UniqueID]),
MAX(FactTable[UniqueID]),
,
ASC
)
🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
🔗 Curious to explore more? [Discover here].
Let’s keep building smarter solutions together!
Hi,
The first dax is giving error:
All column arguments of the ALL/ALLNOBLANKROW/ALLSELECTED/REMOVEFILTERS function must be from the same table.
And, second is giving only 1
Hi @IshaDahra,
Got the issue, All selected can only use single table and 1 is due to the MAX function.
Try below DAX
Serial No =
RANKX(
SUMMARIZE(
ALLSELECTED('FactTable'),
'FactTable'[WorkerID],
'FactTable'[Date]
),
CALCULATE(MIN('FactTable'[Date])),
,
ASC,
DENSE
)
Date and UniqueID is not from the same table.,
So we're getting this:
Argument '2' in CALCULATE function is required.
Please share the DAX you are using
Hi @IshaDahra,
Use below DAX
S.No =
RANKX(
SUMMARIZE(
ALLSELECTED('FACT_STORY'),
'FACT_STORY'[Number],
"MinUpdated", MIN('FACT_STORY'[Updated])
),
[MinUpdated],
,
ASC,
DENSE
)
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 29 | |
| 27 | |
| 24 | |
| 24 | |
| 18 |
| User | Count |
|---|---|
| 54 | |
| 50 | |
| 41 | |
| 33 | |
| 29 |