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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
chrispino1913
New Member

3 data in chart

chrispino1913_0-1739954180490.png

Please tell me how I can display the 2023 actual sales separately instead of calculating them as part of the total actual sales for 2023 and 2024.

1 ACCEPTED SOLUTION
v-yaningy-msft
Community Support
Community Support

Hi, @chrispino1913 

Thanks for the reply from MattiaFratello. You can refer to his reply, or try to use  some measures to achieve your need.

vyaningymsft_0-1740043273595.png

2023Actual = SUMX(FILTER('Table','Table'[Year] = 2023 && 'Table'[Attribute] = "Actual"),'Table'[Value])

2023Target = SUMX(FILTER('Table','Table'[Year] = 2023 && 'Table'[Attribute] = "Target"),'Table'[Value])

2024Actual = SUMX(FILTER('Table','Table'[Year] = 2024 && 'Table'[Attribute] = "Actual"),'Table'[Value])

2024Target = SUMX(FILTER('Table','Table'[Year] = 2024 && 'Table'[Attribute] = "Target"),'Table'[Value])

 

Best Regards,
Yang

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know.
Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

4 REPLIES 4
v-yaningy-msft
Community Support
Community Support

Hi, @chrispino1913 

Thanks for the reply from MattiaFratello. You can refer to his reply, or try to use  some measures to achieve your need.

vyaningymsft_0-1740043273595.png

2023Actual = SUMX(FILTER('Table','Table'[Year] = 2023 && 'Table'[Attribute] = "Actual"),'Table'[Value])

2023Target = SUMX(FILTER('Table','Table'[Year] = 2023 && 'Table'[Attribute] = "Target"),'Table'[Value])

2024Actual = SUMX(FILTER('Table','Table'[Year] = 2024 && 'Table'[Attribute] = "Actual"),'Table'[Value])

2024Target = SUMX(FILTER('Table','Table'[Year] = 2024 && 'Table'[Attribute] = "Target"),'Table'[Value])

 

Best Regards,
Yang

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know.
Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Is it possible to use a combo chart? If we use small multiples, the data charts will not be on a single dashboard/axis. By having them on the same axis, the data will be easier to compare

What a double x-axis then?

MattiaFratello_0-1739956387673.png

 

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.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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