Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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.
I have a dimension table and fact table that has these information
Sharing the Sample PBIX. 50% Sample.pbix
Solved! Go to Solution.
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
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
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
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
89 | |
82 | |
53 | |
40 | |
35 |