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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
adi1234
New Member

Custom summarization of a table

I have a table that looks like this:

adi1234_0-1661423051267.png

                 fig(1)

 

When i import the table in powerbi the summarization is set by default and the table is summarised in the following way.

adi1234_1-1661423190605.png

                  fig(2)

 

I have a requirement that when i summarise the table it should be in the following manner:

adi1234_2-1661423497851.png

 

ie. when the value in F1=0, it should skip that whole row for summarisation. How can the summarisation take place.

 

 

 

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.

It is for creating a new table.

 

Picture2.png

 

New Table =
UNION (
    GROUPBY (
        FILTER ( Data, Data[F1] <> 0 ),
        Data[Item],
        "@F1", SUMX ( CURRENTGROUP (), Data[F1] ),
        "@F2", SUMX ( CURRENTGROUP (), Data[F2] ),
        "@F3", SUMX ( CURRENTGROUP (), Data[F3] )
    ),
    FILTER ( Data, Data[F1] = 0 )
)

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.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

1 REPLY 1
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.

It is for creating a new table.

 

Picture2.png

 

New Table =
UNION (
    GROUPBY (
        FILTER ( Data, Data[F1] <> 0 ),
        Data[Item],
        "@F1", SUMX ( CURRENTGROUP (), Data[F1] ),
        "@F2", SUMX ( CURRENTGROUP (), Data[F2] ),
        "@F3", SUMX ( CURRENTGROUP (), Data[F3] )
    ),
    FILTER ( Data, Data[F1] = 0 )
)

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.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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