The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I have a table that looks like this:
fig(1)
When i import the table in powerbi the summarization is set by default and the table is summarised in the following way.
fig(2)
I have a requirement that when i summarise the table it should be in the following manner:
ie. when the value in F1=0, it should skip that whole row for summarisation. How can the summarisation take place.
Solved! Go to Solution.
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.
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 )
)
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.
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 )
)
User | Count |
---|---|
15 | |
12 | |
7 | |
6 | |
5 |
User | Count |
---|---|
24 | |
20 | |
12 | |
9 | |
7 |