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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Cyriackpazhe
Helper III
Helper III

Dax

Screenshot (48).pngScreenshot (49).png

I want to compute the sales Screenshot (50).png
I want to compute the sales considering the first day of sales only. 
1. The the first figure I avoided the Iteration of product table. Why did i not get an output.

2. I Avoided the iteration over the product table again, But the measure gave me an Output.

3. I iterated over the product table. Is it necessary to iterate over product table. What are the issues with first and second measure. Can someone help me out

2 ACCEPTED SOLUTIONS
Deku
Super User
Super User

Syntactically the first and second measure are identical. Min( sales[order date] ) == minx( sales, sales[order date]). The only difference is you have wrapped on in calculate, since there is no row context or calculate modifiers it does nothing.

 

The 3rd is wrong. You are summing the min order dates of each product together

 

It is not clear why your 1st and 2nd should have differing results 


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

View solution in original post

The first two return a single date for the first order from any product. So you will only get sales from products on that had sales on that day.

 

When you iterate products you are getting the first sales date, and then the sales amount per product, then summing the results. So this also includes products that have first orders after the very first order date


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

View solution in original post

8 REPLIES 8
v-prasare
Community Support
Community Support

Hi @Cyriackpazhe,

As we haven’t heard back from you, we wanted to kindly follow up to check if the below solution provided for your issue worked? or let us know if you need any further assistance here?

 

 

 

Thanks,

Prashanth Are

MS Fabric community support

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query

v-prasare
Community Support
Community Support

Hi @CyriackpazheAs we haven’t heard back from you, we wanted to kindly follow up to check if the below solution provided for your issue worked? or let us know if you need any further assistance here?

 

 

 

Thanks,

Prashanth Are

MS Fabric community support

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query

v-prasare
Community Support
Community Support

Hi @Cyriackpazhe,

 As we haven’t heard back from you, we wanted to kindly follow up to check if the below solution provided for your issue worked? or let us know if you need any further assistance here?

 

 

 

Thanks,

Prashanth Are

MS Fabric community support

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query

Cyriackpazhe
Helper III
Helper III

Screenshot (51).png

The third one is the correct one. I'm summing the sales amount of the product on the first day of sales.

 

You're right, with the formatting on the measure I misread it


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

So my doubt is, is it necessary to iterate over the product table?? Why do i get a different result when i don't iterate over product

The first two return a single date for the first order from any product. So you will only get sales from products on that had sales on that day.

 

When you iterate products you are getting the first sales date, and then the sales amount per product, then summing the results. So this also includes products that have first orders after the very first order date


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
Deku
Super User
Super User

Syntactically the first and second measure are identical. Min( sales[order date] ) == minx( sales, sales[order date]). The only difference is you have wrapped on in calculate, since there is no row context or calculate modifiers it does nothing.

 

The 3rd is wrong. You are summing the min order dates of each product together

 

It is not clear why your 1st and 2nd should have differing results 


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.