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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Praj
Helper I
Helper I

Issues in developing 100% stacked column chart visual

Hey Everyone,

 

I have the below input tables, in which 1st table has the user details and 2 table has user details, activity conducted by user and date of activity.

Table 1

Praj_0-1674475052526.png

 

Table 2

Praj_1-1674475069337.png

 

 

I am trying to identify the % of total user who had activities in a specific month/quarter using a slicer as shown in the below image.  For example, In April 2023, only 1 user is scheduled to have an activity and the output in the visual am expecting is 10% as there is only 1 user out of 10 total user who has activity in April. However, the stacked column chart when I use, It shows 100% all the time.  Can anyone please let me know how I can get this. 

 

Praj_2-1674474579160.png

I know this is pretty basic, but I don't know where I am missing to get the results.

 

Looking for any approach or solution to get the desired results.

 

TIA

Cheers,

Praj

 

 

 

2 REPLIES 2
amitchandak
Super User
Super User

@Praj , You measure should be like

 

divide(Distinctcount(Fact[UserID]), calculate(Distinctcount(Fact[UserID]), all(Fact)) )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks @amitchandak for your response. 

 

I did try the above measure and added that to chart however, the chart still displays the same result as 100% everytime

Praj_0-1674476546730.png

 

Cheers,

Praj

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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