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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Kudoed Authors