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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
pradeepall4u
New Member

% of Row or Col total

Hi,

 

I am trying to create a clustered col chart which shows the % of tickets created by weekday by location.

 

Actual Values
TicketsSunMonTueWedThuFriSatGrand Total
GT1216816217219074688
HN12321255712061615156815056786
IND3464305917611058145118636500
US7818035355781496310203965
Grand Total5488431569268636594172446217939
         
Calculated Values
SiteSunMonTueWedThuFriSatGrand Total
GT0%3%10%24%25%28%11%100%
HN2%3%8%18%24%23%22%100%
IND5%7%9%12%16%22%29%100%
US2%5%9%14%21%24%26%100%
Grand Total3%5%9%15%20%23%25%100%

 

Desired Output:

Desired OutputDesired Output

 

Thanks and regards,

Pradeep

 

1 REPLY 1
Anonymous
Not applicable

[Value % of Time] =
var __currentValue = [Measure]
var __totalValueAcrossTime =
	calculate(
		[Measure],
		allselected( 'Calendar' )
	)
var __percent =
	divide( __currentValue, __totalValueAcrossTime )
return
	__percent

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors