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
Viniciussouza
Frequent Visitor

Percentual Indicator

Hello, 

I am creating a dashboard to monitoring all actitives that the team worked. I have a share point list that contain date and activity will performed during the year. 

So I need create a percentage indicator visual to show the total activities was done during a day. For example, today is 03/24/23 and I have 10 activities planned to perform however I only finished 5 activities therefore I conclused 50% of my planned activities.

How can I count the number of activities I need perform per day ? After count it I imagine that is possible create a percentage indicator.

1 ACCEPTED SOLUTION
v-tangjie-msft
Community Support
Community Support

Hi @Viniciussouza ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data.  

vtangjiemsft_0-1679882437287.png

(2) We can create three measures. 

total activity = COUNTROWS(FILTER(ALL('Table'),'Table'[date]=MAX('Table'[date])))
finished = CALCULATE(COUNTA('Table'[finished activity]),'Table'[finished activity]<>BLANK() && 'Table'[date]=MAX('Table'[date]))
percentage = DIVIDE('Table'[finished],'Table'[total activity],0)

(3) Then the result is as follows.

vtangjiemsft_1-1679882513054.png

 

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

View solution in original post

2 REPLIES 2
v-tangjie-msft
Community Support
Community Support

Hi @Viniciussouza ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data.  

vtangjiemsft_0-1679882437287.png

(2) We can create three measures. 

total activity = COUNTROWS(FILTER(ALL('Table'),'Table'[date]=MAX('Table'[date])))
finished = CALCULATE(COUNTA('Table'[finished activity]),'Table'[finished activity]<>BLANK() && 'Table'[date]=MAX('Table'[date]))
percentage = DIVIDE('Table'[finished],'Table'[total activity],0)

(3) Then the result is as follows.

vtangjiemsft_1-1679882513054.png

 

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

Hello @v-tangjie-msft ,

 

Thanks for your reply. I tried to apply it in my dashboard although it'snt work well. I don´t know how add my .pbix here so I am sharing the print screen.

 

Fifth column is activity date started

Sixth column is activity date planed

Seventh column is activity date finished

So if the start date and finish date <= plan date the result was 1, whether start date and/or finish date > plan date result was 0. 

In this case the percentual total was 37,5 %

 

Viniciussouza_1-1681176598598.png

 

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.