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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Gpera
Regular Visitor

Calculating percentage over date level

Hi,

As you can see I have a table with these data:

Gpera_0-1701169164608.png

Share of Voice has been calculated as: 

divide('Adspend - Monthly data'[Spend ('000 Euro)], 'Adspend - Monthly data'[Total Category Spend ('000 Euro)])
But if i create another matrix just for years I get this results:
Gpera_2-1701169379419.png

 


What I would like to have is a mesure that calculate correctly the percentage on column added, so sum of Spend over sum of Category by each level of granularity. 

Ex.  In Table 1:

2022 | 1 | 1010 | 2816 | 36%

Ex. In Table 2:

2022 | 6596 | 77913 | 8,4%

 

Could you please help me?

Thanks

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@Gpera,

 

Try these measures. Percentages need to be calculated in a measure, not a column in the table; this allows them to dynamically calculate in the filter context of the visual.

 

Sum of Spend = SUM ( Spend[Spend] )
Sum of Total Category Spend = SUM ( Spend[Total Category Spend] )
Share of Voice = DIVIDE ( [Sum of Spend], [Sum of Total Category Spend] )

 

DataInsights_0-1701264396522.png

 

DataInsights_1-1701264411885.png

 





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

Proud to be a Super User!




View solution in original post

1 REPLY 1
DataInsights
Super User
Super User

@Gpera,

 

Try these measures. Percentages need to be calculated in a measure, not a column in the table; this allows them to dynamically calculate in the filter context of the visual.

 

Sum of Spend = SUM ( Spend[Spend] )
Sum of Total Category Spend = SUM ( Spend[Total Category Spend] )
Share of Voice = DIVIDE ( [Sum of Spend], [Sum of Total Category Spend] )

 

DataInsights_0-1701264396522.png

 

DataInsights_1-1701264411885.png

 





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

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.