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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
trang_000
New Member

Is there any wrong with my measure formular?

I have a measure below:

DEBIT NOTE B4 = SUMX('table', 'table'[Due Date] - 29)

 

When I use measure in Report View, only 1 transaction is incorrecttrang_000_1-1741753549618.png

 

When i changed the formular for that measure to

DATEADD('table'[Due Date], -29, DAY)

 

or 

CALCULATE(
    SUMX(
        'table',
        DATEADD('table'[Due Date], -29, DAY)
    )
)

 

All results are null.

 

Please advise me if any wrong with formular or anything else.

 

Thank you!

 

 

7 REPLIES 7
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like or how the filter context is configured, but please try something like below whether it works.

 

DEBIT NOTE B4 =
MAX ( 'table'[Due Date] ) - 29

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Thank you for your feedback,

 

I added a New Column = Due Date - 29 then it works now.

 

 

Hi @trang_000  ,

Thanks for the update. We are happy to hear that you have resolved the issue. Thanks for sharing the details here. Please mark your insights 'Accept as solution' to help others with similar problems find it easily. 
Thank you.

Hi @trang_000  ,

Thanks for the update. We are happy to hear that you have resolved the issue. Thanks for sharing the details here. Please mark your insights 'Accept as solution' to help others with similar problems find it easily. 
Thank you.

Hi @trang_000  ,

Thanks for the update. We are happy to hear that you have resolved the issue. Thanks for sharing the details here. Please mark your insights 'Accept as solution' to help others with similar problems find it easily. 
Thank you.

Hi @trang_000  ,

Thanks for the update. We are happy to hear that you have resolved the issue. Thanks for sharing the details here. Please mark your insights 'Accept as solution' to help others with similar problems find it easily. 
Thank you.

Hi @trang_000 ,

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet.In case we do not receive a response, we shall proceed to close this thread. For any further discussions or queries, please initiate a new thread in the Microsoft Fabric Community Forum, where we will be glad to assist you.

Thank you.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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