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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.