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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
afbraga66
Helper III
Helper III

Total of countrows per column showing in each row

Hey,

I am trying to show in each line the count of rows that have the same downtime ID, but so far no luck.

The image below is what I expected to have, but due to the exising columns from a dimension table I have not been able to get the desired result, and I need those dimmensions columns on the table. How can I achieve the desired result?

Link to the file: https://we.tl/t-K8UReNHWtR

 

Thanks

André

afbraga66_0-1710756445735.png

 

3 ACCEPTED SOLUTIONS
ryan_mayu
Super User
Super User

maybe you can try this

=calculate(countrows(table),allexcept(table, downtimeid))





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

v-yifanw-msft
Community Support
Community Support

Hi @afbraga66 ,

As @ryan_mayu  said, you can apply this code to solve your problem. I am adding a small step here, before adding this code you can merge two tables on one table, this will give you better results as you want:

vyifanwmsft_0-1710813740938.png

Final output:

vyifanwmsft_1-1710814437197.png

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

Ashish_Mathur
Super User
Super User

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1710818141401.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1710818141401.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-yifanw-msft
Community Support
Community Support

Hi @afbraga66 ,

As @ryan_mayu  said, you can apply this code to solve your problem. I am adding a small step here, before adding this code you can merge two tables on one table, this will give you better results as you want:

vyifanwmsft_0-1710813740938.png

Final output:

vyifanwmsft_1-1710814437197.png

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

ryan_mayu
Super User
Super User

maybe you can try this

=calculate(countrows(table),allexcept(table, downtimeid))





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.