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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! 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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors