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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
v_mark
Helper V
Helper V

Know if we are 50% or Halfway there based on a criteria on a dimension table.

For context I need to know if we are halfway there based from created date and target date per specific priority number and return "at risk" else "open". On a calculated column

For example: This example should return "at risk" since the target date is pass over the 28/01/2023.
Determining how many days it will go over can be found on the dimension table.
I just divide the days timeframe into 2 and round  it up. 

v_mark_3-1681351029484.png

I have a dimension table and fact table that has these information 

v_mark_0-1681350428341.png


Sharing the Sample PBIX.  50% Sample.pbix

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

Hi @v_mark ,

Please try this.

Status 2 = 
VAR _50_date = 'FactTable'[Created date] + RELATED(TimeFrameTable[50% of Days])
VAR _result = IF(ISBLANK('FactTable'[Close Date]) && 'FactTable'[Target Date] > _50_date, "At Risk", "Open")
RETURN
_result

vcgaomsft_0-1681802731857.png

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

1 REPLY 1
v-cgao-msft
Community Support
Community Support

Hi @v_mark ,

Please try this.

Status 2 = 
VAR _50_date = 'FactTable'[Created date] + RELATED(TimeFrameTable[50% of Days])
VAR _result = IF(ISBLANK('FactTable'[Close Date]) && 'FactTable'[Target Date] > _50_date, "At Risk", "Open")
RETURN
_result

vcgaomsft_0-1681802731857.png

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Kudoed Authors