Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
IshaDahra
Regular Visitor

Serial No. in visualisation

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

1 ACCEPTED SOLUTION

Hi @IshaDahra,

 

Use below DAX

 

S.No =
RANKX(
SUMMARIZE(
ALLSELECTED('FACT_STORY'),
'FACT_STORY'[Number],
"MinUpdated", MIN('FACT_STORY'[Updated])
),
[MinUpdated],
,
ASC,
DENSE
)

View solution in original post

10 REPLIES 10
v-sgandrathi
Community Support
Community Support

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.

v-sgandrathi
Community Support
Community Support

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!

Praful_Potphode
Super User
Super User

Hi @IshaDahra 

 

You can create visual calculation(Select Your Visual->Home->New Visual Calculation) like below in your visual:

Praful_Potphode_0-1774333841029.png

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

LinkedIn

Thanks and Regards,
Praful Potphode
LinkedIn-https://www.linkedin.com/in/praful-p-912349241/
grazitti_sapna
Super User
Super User

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

S.No =
RANKX( SUMMARIZE( ALLSELECTED('FACT_STORY'), 'FACT_STORY'[Number], FACT_STORY[Updated]), CALCULATE(MIN(FACT_STORY[Updated]), ,ASC, DENSE )
 )

Hi @IshaDahra,

 

Use below DAX

 

S.No =
RANKX(
SUMMARIZE(
ALLSELECTED('FACT_STORY'),
'FACT_STORY'[Number],
"MinUpdated", MIN('FACT_STORY'[Updated])
),
[MinUpdated],
,
ASC,
DENSE
)

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors