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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
admin11
Memorable Member
Memorable Member

My expression 1-31 Day return wrong value

Hi All

 

I have a expression no error ,when it compute last 30 days out standing amount :-

 
_1_31 Day =
SUMX(
FILTER( AP ,
DATEDIFF(AP[AP Invoice Date], TODAY() , DAY) > 1
&&
DATEDIFF(AP[AP Invoice Date], TODAY() , DAY) <= 31
),
AP[Outstanding w/o Tax (LC)]
)
 
It return the wrong amount.
 
admin11_0-1652498840203.png

 

Hope some one can advise me where go wrong ?
 
below link is my PBI file :-
 
Paul Yeo
 
1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@Ashish_Mathur 

thank you very much it work.

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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