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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
BPTBPTBPT
Helper II
Helper II

Show sum of amount of entries in column

Hello,

 

I am making a table (visual), which has a column like this:

 

354

254

765

375

 

My question : how can I show the sum of the amount of entries? like this:

 

354

254

765

375

----

4

 

Thank you!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @BPTBPTBPT ,

Please have a try. Only create a measure.

Measure = IF(ISINSCOPE('Table'[Column1]),MAX('Table'[Column1]),COUNTROWS('Table'))

vpollymsft_0-1657592543789.png

If I have misunderstood your meaning, please provide some sample data and desired output.

 

Best Regards

Community Support Team _ Polly

 

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

4 REPLIES 4
Anonymous
Not applicable

Hi @BPTBPTBPT ,

Please have a try. Only create a measure.

Measure = IF(ISINSCOPE('Table'[Column1]),MAX('Table'[Column1]),COUNTROWS('Table'))

vpollymsft_0-1657592543789.png

If I have misunderstood your meaning, please provide some sample data and desired output.

 

Best Regards

Community Support Team _ Polly

 

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

Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

I hope this can provide some hints or ideas on how to create a correct solution for your data model.

 

Untitled.png

 

Expected outcome measure: =
IF ( HASONEVALUE ( Data[Index] ), SUM ( Data[Value] ), COUNTROWS ( Data ) )

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Thank you for your fast and extended reply.

Unfortunately I can't open de pbix because (apparently) I have an older version of Power BI (and cannot update right now).

Your solution looks good, I was hoping it could be done without an extra column, though. 

In fact I have several columns of which I would like to view the sum, then each needs to get its own index column. Is that possible? Or can I have just one index column?

Hi,

Thank you for your feedback.

I am not sure but I think one index column may be OK (Or, if you already have something like a date column, it might be OK too). But still, it is hard to tell without seeing your data model. You can try with your data model, and I hope you can find the best way for your data model.

Thanks.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.