Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hey,
I have this table
I made a mesure to calculate "Attribute1 %" wich is Attribute1/Attribute2*100, and to do this i created :
Table3 = UNION(DISTINCT('Table'[Attributes]);{{"1and2 %"}})
Measure = SUMX ( DISTINCT ( 'Table3'[Attributes] ); SWITCH ( 'Table3'[Attributes]; "1and2 %"; IFERROR((CALCULATE ( SUM ( 'Table'[Value] ); 'Table'[Attributes] = "Attribute1" ) / CALCULATE ( SUM ( 'Table'[Value] ); 'Table'[Attributes] = "Attribute2" ))*100;0); var a = 'Table3'[Attributes] return CALCULATE ( SUM ( 'Table'[Value] );'Table'[Attributes]=a) ) )I also have a second mesure to exclude % from Subtotals and grand totals :
Measure 2 = VAR __Table = ADDCOLUMNS( SUMMARIZE( 'Table 3', [Group], [Attribute], "__Measure",[Measure] ), "__IncludeInTotals",SEARCH("%",[Attribute],,-1) ) RETURN IF( HASONEVALUE('Table 3'[Attribute]), [Measure], SUMX(FILTER(__Table,[__IncludeInTotals] = -1),[__Measure]) )
So now my Table looks like this :
Now what i want to do is to make "Attribute1 %" a sub row of "Attribute1" (Like Attribute1, Attribute2 are sub rows of C1). And i want to do this for each Attribute. For example in the future i'll have "Attribute2 %", "Attribute3 %", etc and i want "AttributeX %" to be a sub row of "AttributeX".
Im really new to PowerBI so i'd really appreciate it if anyone can help me out with that.
Regards
Solved! Go to Solution.
You sure that this can do the job ? I mean i think if i do that i wont be able to show Attribute1 value.
Given your suggestion i think this may work :
Group Attribute Attribute%
C1 Attribute1 Attribute1 %
C1 Attribute1
C1 Attribute2
C1 Attribute3
What do u think ?
You sure that this can do the job ? I mean i think if i do that i wont be able to show Attribute1 value.
Given your suggestion i think this may work :
Group Attribute Attribute%
C1 Attribute1 Attribute1 %
C1 Attribute1
C1 Attribute2
C1 Attribute3
What do u think ?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
55 | |
54 | |
54 | |
37 | |
29 |
User | Count |
---|---|
77 | |
62 | |
45 | |
40 | |
40 |