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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Trying to find the % between bid response dates

I'm trying to calculate the percentage between when a bid was submitted and the response date.

This is a mock up sample of my data. What I'm trying to do is find the percentage between the date a bid was submitted and the bid response date. I tried using DATEDIFF but getting errors.. struggling with this. Appreciate your feedback.

 

ReqIDStateProductBid StatusBid AmountBid SubmittedBid ResponseBid Approved
10001AlabamaConstructionsAwarded$21,0007/14/202010/4/20213/1/2023
10002CaliforniaBridge/TunnelsIn Progress$15,0005/5/20198/19/2022 
10003New YorkWastewater TreatmentAwarded$900,0002/1/20183/2/20204/2/2023
12002MissouriConstructionsBid$821,23511/1/20205/1/2021 
12004IllinoisConstructionsBid$35,0003/1/201912/31/2023 
10005MontanaBridge/TunnelsIn Progress$66,000,0005/1/20184/30/2023 
21002UtahNational ParksAwarded$852,14710/1/20201/11/20211/2/2024
10008UtahWastewater TreatmentAwarded$90,000,00010/1/20209/11/20211/2/2024
210009ConnecticutRoads/HighwaysAwarded$75,0005/4/20236/4/20237/4/2024
10010KansasConstructionsBid$654,0003/1/201912/31/2023 
10020IowaRoads/HighwaysBid$125,84011/30/20216/6/2023 
21010IndianaRoads/HighwaysIn Progress$90,00010/2/20196/6/2023 
21012MichiganWastewater TreatmentIn Progress$85,0005/4/20233/4/2024 
21015WisconsinBridge/TunnelsAwarded$21,0001/2/20205/2/202312/1/2023
10006WyomingNational ParksAwarded$1,500,0007/14/20209/3/202212/2/2024
31002WyomingBridge/TunnelsAwarded$6,000,0007/14/20209/3/20221/2/2024
10006WyomingBridge/TunnelsBid$1,500,0008/4/202112/4/2021 
21018AlabamaBridge/TunnelsBid$75,000,0009/9/20213/1/2024 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Anonymous ,

 

May I ask if you want to find the percentage of the interval date of each row of [Bid Submitted] and [Bid Response] to the sum grouped by [Bid Status]?

Here are the steps you can follow:

Calculated column:

Day_Column =
DATEDIFF(
    'Table'[Bid Submitted],'Table'[Bid Response],DAY)
column_Percentage =
var _groupall=
SUMX(
    FILTER(ALL('Table'),'Table'[Bid Status]=EARLIER('Table'[Bid Status])),[Day_Column])
return
DIVIDE(
    'Table'[Day_Column],_groupall)

vyangliumsft_0-1693816542416.png

Measure:

Day_Measure =
DATEDIFF(
    MAX('Table'[Bid Submitted]),MAX('Table'[Bid Response]),DAY)
Measure_Percentage =
var _groupall=
SUMX(
    FILTER(ALL('Table'),'Table'[Bid Status]=MAX('Table'[Bid Status])),[Day_Measure])
return
DIVIDE(
    [Day_Measure],_groupall)

vyangliumsft_1-1693816542421.png

If I have misunderstood your meaning, please provide your desired output.

 

Best Regards,

Liu Yang

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
Anonymous
Not applicable

Hi  @Anonymous ,

 

May I ask if you want to find the percentage of the interval date of each row of [Bid Submitted] and [Bid Response] to the sum grouped by [Bid Status]?

Here are the steps you can follow:

Calculated column:

Day_Column =
DATEDIFF(
    'Table'[Bid Submitted],'Table'[Bid Response],DAY)
column_Percentage =
var _groupall=
SUMX(
    FILTER(ALL('Table'),'Table'[Bid Status]=EARLIER('Table'[Bid Status])),[Day_Column])
return
DIVIDE(
    'Table'[Day_Column],_groupall)

vyangliumsft_0-1693816542416.png

Measure:

Day_Measure =
DATEDIFF(
    MAX('Table'[Bid Submitted]),MAX('Table'[Bid Response]),DAY)
Measure_Percentage =
var _groupall=
SUMX(
    FILTER(ALL('Table'),'Table'[Bid Status]=MAX('Table'[Bid Status])),[Day_Measure])
return
DIVIDE(
    [Day_Measure],_groupall)

vyangliumsft_1-1693816542421.png

If I have misunderstood your meaning, please provide your desired output.

 

Best Regards,

Liu Yang

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

lbendlin
Super User
Super User

percentage of what? You are dealing with date differences, so not clear how you want to arrive at percentages.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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