Share via

How do I return 0 using a DAX Calculate function in Power BI?

Anonymous
2025-02-13T14:13:34+00:00

I have the following expression and want it to return zero if the data is 0 or blank for the current pay period. Instead, it looks for the amount and if there is none for the current pay period, it moves to the previous pay period. I've tried using IF, IS BLANK, and COALESCE but I can't get it to work and I'm not super familiar with DAX. I hope this makes sense, can anyone help?

Current PP Amount = CALCULATE(SUM('Payroll and FTE'[Amount]),'Payroll and FTE'[PPE] = MAX(('Payroll and FTE'[PPE])))

Microsoft 365 and Office | Install, redeem, activate | For business | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2025-02-13T15:15:14+00:00

Dear Mindy_876,

Good day! Thank you for posting to Microsoft Community. We are happy to help you.

It sounds like you query regarding DAX calculate function in Power BI. While our forum mainly deals with SharePoint features, I can guide you to the right place for Power BI-related queries.

For detailed assistance, I recommend visiting the Power BI Community. This platform specializes in Power BI issues. When posting your question, may use the 'Need help' label to get the most accurate help from the dedicated team of engineers. As our community has limited knowledge in this area,

Image

Please accept our sincere apologies for redirecting you to another platform. The moderators in this community have limited experience and resources to support this. To ensure you receive prompt and appropriate assistance, we believe this is the best course of action.

We appreciate your patience and understanding and thank you for your cooperation.

Sincerely, Ralph Chawatama | Microsoft Community Moderator

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2025-02-13T15:22:46+00:00

    Thank you for the guidance!

    Was this answer helpful?

    0 comments No comments