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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Edgar_massa
Helper II
Helper II

DAX calculation returns blank

Good night sir

I'm having trouble creating a measure, and I'm trying to simulate it in a DAX virtual table, I want that when it's between the 1st and 10th, take the sum of liters of fuel from the context, but from last month, p. ex, if it's November 5th, get October 5th, if it's 11th, get the sum of liters from 7 days ago, but it's returning empty, can someone help me understand what happens?

 

Edgar_massa_0-1667509818287.png

Edgar_massa_1-1667509852217.png

 

1 ACCEPTED SOLUTION
Edgar_massa
Helper II
Helper II

Good afternoon

I managed to solve the problem using the GENERATE function

 

Edgar_massa_0-1669828402566.png

 

View solution in original post

2 REPLIES 2
Edgar_massa
Helper II
Helper II

Good afternoon

I managed to solve the problem using the GENERATE function

 

Edgar_massa_0-1669828402566.png

 

vanessafvg
Super User
Super User

are you able to share your pbix or some data?

 

have you checked that you definitely have data for all the conditions?  Also the relationship view of your model. How are these tables joined?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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