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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
BIswajit_Das
Impactful Individual
Impactful Individual

Calculated Column

Hello guys
There's a table like :

PC_IDAC NO.PARTYSEAT
RJ-859BJP8
RJ-860INC8
RJ-861INC8
RJ-862BJP8
RJ-865INC8
RJ-866BJP8
RJ-867INC8
RJ-868INC8

MY REQUIRED TABLE IS LIKE:

PC_IDAC NO.PARTYSEATSTATUS
RJ-859BJP83/8
RJ-860INC85/8
RJ-861INC85/8
RJ-862BJP83/8
RJ-865INC85/8
RJ-866BJP83/8
RJ-867INC85/8
RJ-868INC85/8

BASICALLY IT COUNTS THE PARTY COLUMN VALUES WITH TOTAL SEATS AND RETURN A RESULT COLUMN.
Thanks & Regards ...

2 ACCEPTED SOLUTIONS
barritown
Solution Sage
Solution Sage

Hi @BIswajit_Das,

If you decide to add this column via DAX, here is an option:

barritown_0-1715718384455.png

And in plain text:

STATUS = 
VAR currentParty = [PARTY]
RETURN COUNTROWS ( FILTER ( 'Table', [PARTY] = currentParty ) ) & "/" & [SEAT]

Best Regards,

Alexander

My YouTube vlog in English

My YouTube vlog in Russian

 

View solution in original post

Anonymous
Not applicable

Hi @BIswajit_Das ,

 

Your solution is great, @barritown . It worked like a charm! Here I have another idea in mind, and I would like to share it for reference.

 

Measure performs better compared to computed columns because it doesn't take up memory space.

 

So I would recommend that you try not to use calculated columns for functions that can be implemented using measure, especially since the performance difference will be more noticeable when working with large data.

 

Please create a measure:

STATUS =
VAR TotalSeats =
    MAX ( 'Table'[SEAT] )
VAR PartyCount =
    CALCULATE ( COUNTROWS ( 'Table' ), ALLEXCEPT ( 'Table', 'Table'[PARTY] ) )
RETURN
    CONCATENATE ( CONCATENATE ( PartyCount, "/" ), TotalSeats )

 

The final page effect is as follows:

vhuijieymsft_0-1715740159267.png

 

pbix file is attached.

 

If you have any further questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

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!

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @BIswajit_Das ,

 

Your solution is great, @barritown . It worked like a charm! Here I have another idea in mind, and I would like to share it for reference.

 

Measure performs better compared to computed columns because it doesn't take up memory space.

 

So I would recommend that you try not to use calculated columns for functions that can be implemented using measure, especially since the performance difference will be more noticeable when working with large data.

 

Please create a measure:

STATUS =
VAR TotalSeats =
    MAX ( 'Table'[SEAT] )
VAR PartyCount =
    CALCULATE ( COUNTROWS ( 'Table' ), ALLEXCEPT ( 'Table', 'Table'[PARTY] ) )
RETURN
    CONCATENATE ( CONCATENATE ( PartyCount, "/" ), TotalSeats )

 

The final page effect is as follows:

vhuijieymsft_0-1715740159267.png

 

pbix file is attached.

 

If you have any further questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

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!

barritown
Solution Sage
Solution Sage

Hi @BIswajit_Das,

If you decide to add this column via DAX, here is an option:

barritown_0-1715718384455.png

And in plain text:

STATUS = 
VAR currentParty = [PARTY]
RETURN COUNTROWS ( FILTER ( 'Table', [PARTY] = currentParty ) ) & "/" & [SEAT]

Best Regards,

Alexander

My YouTube vlog in English

My YouTube vlog in Russian

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.