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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Peleias
Helper I
Helper I

Value of collumn change by month

Hi Guys
I'm studying powerbi but I couldn't come to a conclusion for the question below, I need some help to get started.
Any suggestions on how to do it, what word to look for or some tutorial.

 

The case, I create project overview, how much percent a task will be completed each month.

PowerBI-T.png

As pictured, I currently do it manually.

I create 4 pages (yellow) in powerpoint based on the table above. I copy the graphics for each page.

 

In PowerBI I would like to be able to click on the month (timeline?) and show me how many % would be in that month, maybe a dynamic column would be the case.

=IF(WORKDAY($E4;L$2)/$D4<0;0;IF(WORKDAY($E4;L$2)/$D4>1;1;WORKDAY($E4;L$2)/$D4))

I use for Percent in excel.

 

I powerpoin, manually.

In powerpointIn powerpoint

 

 

 

 

 

 

 

 

Thanks

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

Hi @Peleias ,

According to your description, I download your sample, here's my solution.

1.Create a date table including all the date in the progress, don't make relationship between two tables.

vkalyjmsft_0-1650522070642.png

2.Create a measure.

Progress =
SWITCH (
    TRUE (),
    SELECTEDVALUE ( 'Date'[Date] ) = DATE ( 2022, 5, 22 ), MAX ( 'TP'[ May 22] ),
    SELECTEDVALUE ( 'Date'[Date] ) = DATE ( 2022, 6, 22 ), MAX ( 'TP'[ Jun 22] ),
    SELECTEDVALUE ( 'Date'[Date] ) = DATE ( 2022, 7, 22 ), MAX ( 'TP'[ Jul 22] ),
    SELECTEDVALUE ( 'Date'[Date] ) = DATE ( 2022, 8, 22 ), MAX ( 'TP'[ Aug 22] ),
    SELECTEDVALUE ( 'Date'[Date] ) = DATE ( 2022, 9, 22 ), MAX ( 'TP'[ Sep 22] ),
    SELECTEDVALUE ( 'Date'[Date] ) = DATE ( 2022, 10, 22 ), MAX ( 'TP'[ Oct 22] ),
    SELECTEDVALUE ( 'Date'[Date] ) = DATE ( 2022, 11, 22 ), MAX ( 'TP'[ Nov 22] ),
    SELECTEDVALUE ( 'Date'[Date] ) = DATE ( 2022, 12, 22 ), MAX ( 'TP'[ Dec 22] ),
    SELECTEDVALUE ( 'Date'[Date] ) = DATE ( 2023, 1, 23 ), MAX ( 'TP'[ Jan 23] ),
    0
)

3.Put the new date column in the timeline, the measure and project in the bar chart, get the correct result.

vkalyjmsft_1-1650522283302.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

6 REPLIES 6
v-yanjiang-msft
Community Support
Community Support

Hi @Peleias ,

According to your description, I download your sample, here's my solution.

1.Create a date table including all the date in the progress, don't make relationship between two tables.

vkalyjmsft_0-1650522070642.png

2.Create a measure.

Progress =
SWITCH (
    TRUE (),
    SELECTEDVALUE ( 'Date'[Date] ) = DATE ( 2022, 5, 22 ), MAX ( 'TP'[ May 22] ),
    SELECTEDVALUE ( 'Date'[Date] ) = DATE ( 2022, 6, 22 ), MAX ( 'TP'[ Jun 22] ),
    SELECTEDVALUE ( 'Date'[Date] ) = DATE ( 2022, 7, 22 ), MAX ( 'TP'[ Jul 22] ),
    SELECTEDVALUE ( 'Date'[Date] ) = DATE ( 2022, 8, 22 ), MAX ( 'TP'[ Aug 22] ),
    SELECTEDVALUE ( 'Date'[Date] ) = DATE ( 2022, 9, 22 ), MAX ( 'TP'[ Sep 22] ),
    SELECTEDVALUE ( 'Date'[Date] ) = DATE ( 2022, 10, 22 ), MAX ( 'TP'[ Oct 22] ),
    SELECTEDVALUE ( 'Date'[Date] ) = DATE ( 2022, 11, 22 ), MAX ( 'TP'[ Nov 22] ),
    SELECTEDVALUE ( 'Date'[Date] ) = DATE ( 2022, 12, 22 ), MAX ( 'TP'[ Dec 22] ),
    SELECTEDVALUE ( 'Date'[Date] ) = DATE ( 2023, 1, 23 ), MAX ( 'TP'[ Jan 23] ),
    0
)

3.Put the new date column in the timeline, the measure and project in the bar chart, get the correct result.

vkalyjmsft_1-1650522283302.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

Hi @v-yanjiang-msft  

Because of your measure I was able to make a lot of progress. Helped me a lot. And I'm trying to simplify in powerbi, making the excel formula inside powerbi, with ChicletSlider Is it possible? In the same style as your mensure;

I'm mentioning you here because I was only able to advance with your measurement.

 

=IF(WORKDAY($E4;L$2)/$D4<0;0;IF(WORKDAY($E4;L$2)/$D4>1;1;WORKDAY($E4;L$2)/$D4))

This formula uses workday in between Start Date and Date Selected (from ChicletSlicer in powerbi) and divides from Duration.

The IF of formula is for the result to be a minimum of 0 (0%) and a maximum of 1 (100%).

pbix https://drive.google.com/file/d/1A_l7kBNZ3uD8xXP5LYUbHzr1mPEz04Ac/view?usp=sharing

 

Progress.jpg

Expect result; 

image.png

 

thank you, regards

(original post https://community.powerbi.com/t5/Desktop/Mensure-Porcentage-between-two-dates-with-ChicletSlicer/m-p...)

@v-yanjiang-msft  thank you very much. I was trying with relationship but still no success. I was looking at a form with unpivot data, but your method is much better.
I used ChicletSlicer with your solution and it turned out great!


Maybe is that too much to ask, is it possible to merge your solution with @amitchandak ? The percentage formula inside powerbi?
I tried here for 2h hours, but the relationship between rows and columns is something that has blown my mind.

Hi @Peleias ,

If you want to get the correct Amik like below, you should add a new project column, PROJECT E1,PROJECT E2 and PROJECT E3 belong to one project, the same goes for R and T. 

vkalyjmsft_0-1651139763577.png

In Power Query it's easy to get it by below steps:

#"Duplicated Column" = Table.DuplicateColumn(#"Changed Type", "Project", "Project - Copy"),
#"Split Column by Character Transition" = Table.SplitColumn(#"Duplicated Column", "Project - Copy", Splitter.SplitTextByCharacterTransition((c) => not List.Contains({"0".."9"}, c), {"0".."9"}), {"Project - Copy.1", "Project - Copy.2"}),
#"Removed Columns" = Table.RemoveColumns(#"Split Column by Character Transition",{"Project - Copy.2"}),
#"Renamed Columns" = Table.RenameColumns(#"Removed Columns",{{"Project - Copy.1", "ProjectGroup"}})

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

Peleias
Helper I
Helper I

@amitchandak 

Thanks Amit, I already subscribed to your channel. But I don't think I got it with formula.
https://drive.google.com/file/d/1NRL8bp_rFSejJGA523nEGyfH8F_ZAXyJ/view?usp=sharing
image.png

amitchandak
Super User
Super User

@Peleias , Try a measure like

 

divide(Sum(Table[Duration]), calculate(Sum(Table[Duration]), filter(allselected(Table) , Table[Project] = max(Table[Project]))))

 

 

Percent of SubTotal or Total: https://www.youtube.com/watch?v=6jTildcV2ho&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=37

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.