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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
VKeller
New Member

SALES AMOUNT LAST YEAR - PROBLEM WHEN FILTER

Hi,

 

I am making a dashboard, filtered by year and month, with two tables.

 

The first table is fixed (not filtered by the year and month filters) shows the sales amount per month (line) and per year (columns). There I have the Sales Amount number and the YoY

 

The second shows all clients that paid us that month and year (filters of the dashboard), with their Sale Amounts and YoY.

 

The second table can filter the first. And here starts my Problem.

 

When I choose a client that has two differents payments on the same date, the YoY returns a error.

 

I use the basic DAX for last yeat measures

 

= CALCULTE ([Sales],SAMEPERIODLASTYEAR(Calendar[Date]))

 

How can I solve this problem?

I am pretty sure that the problem is caused by the payments on the same date.

1 REPLY 1
v-yalanwu-msft
Community Support
Community Support

Hi, @VKeller ;

Sorry, can you share a scene or a simple example (accompanied by a picture) and the desired result presentation?

 please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors