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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Aron_Moore
Solution Specialist
Solution Specialist

Need some help with DAX

Hello experts! Need help to create a measure.

 

I have a table of transactions like so:

Capture.PNG

 

The user wants to see each week the payment could land, from ship to due date like so:

Capture1.PNG

 

I created a date table and joined the two tables so they can pivot on week or customer, whatever the user likes.

 

I've tried a few measures but I can't get the value to show at each week/period. Either it puts it all all periods or only the one.

 

Thank you!

1 ACCEPTED SOLUTION
Aron_Moore
Solution Specialist
Solution Specialist

Think this is what I was looking for. Power BI Community

 

Initial results look promising. Will validate the data.

View solution in original post

11 REPLIES 11
Aron_Moore
Solution Specialist
Solution Specialist

Think this is what I was looking for. Power BI Community

 

Initial results look promising. Will validate the data.

Hi @Aron_Moore,

Have you resolved your issue? If you have, welcome to share your solution or mark the right reply as answer. More people will benefit from here.

 

Thanks,
Angelia

Still waiting to hear back from the testers.

Hi @Aron_Moore,

Got it. You post the link, I thought you found the solution. You'd better post the sample table and list the expected result if you want to get dedicated support.

Best Regards,
Angelia

Hi @Aron_Moore,

Please try the solution in the thread you found. And feel free to ask if you have any other issue.

Best Regards,
Angelia

parry2k
Super User
Super User

if without measure you put 

 

bill to cust on rows

date in column

sales in values (choose sum from drop down)

 

it will give you what you need. 

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Maybe but I think it would take some redesign. Currently there is only one value per date in the model. They want to see the value across every date/bucket that is possible.

that is ok, choose matrix visual and use fields as i mentioned and it should work.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

I have tried that. Here are a couple matix using different date fields. It only populates the one date. Also, the user will be consuming the model via Excel/Publisher.

 

Capture.PNG

what will be the logic to pick date 1 over date 2

 

you can create a calculated column based on that logic and then use that new calculated column in matrix. If you can provide more details, it will be helpful.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

The user would pick date 1 or 2 depending on what they want to analyze. Maybe they want to see everything shipped on sale day or something. I could hide those dates if we need to.

 

For the specific reporting request they want to see the total amount of payments that could come in each week.

 

I tried putting it in plain English to then convert to DAX. Something like: For each 'Week Of' Sum 'Amount' where dates between 'Ship' and 'Invoice Due' in 'Week Of'.

 

Capture.PNG

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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