Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Query
Unanswered

DAX Calculations in power BI

(0) ShareShare
ReportReport
Posted on by
For DAX calculations, could you please advice how I can calc a column to show number of days it takes for close an issue if I have an initial date and due date. When it approaches 5 days to the due date, the shows a red color, 15 days to due date yellow, 30 days to due date should be green
Categories:
  • Rhys @ Empower 365 Profile Picture
    4 on at
    DAX Calculations in power BI
    You could you this to get the days till it's due 
     
    DaysToDue = DATEDIFF(TODAY(), [DueDate], DAY)
     
    And then apply some conditional formatting but without a closed date you can't calculate the number of days it takes to close the issue.
  • lbendlin Profile Picture
    7,941 Super User 2025 Season 1 on at
    DAX Calculations in power BI
    COUNTROWS(CALENDAR([initial date],[due date]))
     
    You can argue if you should subtract 1 or not.
     
    When it approaches 5 days to the due date, the shows a red color, 15 days to due date yellow, 30 days to due date should be green
    Please describe what you mean by "it"  and "approaches".

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics