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
Baba
Frequent Visitor

Not Sure what I am doing wrong here

Hello experts,

 

I am trying to get this layout and able to do that if I don't link my "Layout" table to "Sales" table but all the sales numbers are repeating.

Baba_0-1713489119486.png

but if I link those two together (Header from Layout and Sales Type from Sales) calculation is correct but delta colums disappears 

Baba_1-1713489208955.png

This is my relationship tab looks like

Baba_2-1713489302948.png

and this is how Layout tables is

Baba_3-1713489333364.png

Measures I have

Baba_4-1713489397496.png 

Baba_5-1713489411659.png

Appreciate your input in this.

Thanks

 

3 REPLIES 3
Baba
Frequent Visitor

@amitchandak

 

Was able to fix the issue where past sales were not showing based on the year selected in the slicer.  It was because of the link between tables were not correct.

 

Still struggling to get the varinace between the sales.  I used this below measure to test and it's working as long as slicer stays to "2023" but need help how I can switch to selected year in the slicer?

Baba_1-1713800388858.png

 

Baba_2-1713800431292.png

Thanks

 

 

amitchandak
Super User
Super User

@Baba, Can try creating a calculation group if there are measures.

Thanks @amitchandak 

Actually that option is much cleaner and less measure (again I am new to Power BI and learning new tips and tricks everyday).

 

So after using "Calculation Group" (with in the power bi because I don't have Tabular Editor because of IT limitations) I am able to get (sort of) what I am after but two questions:


1. Since I am using slicer to choose the year, so I'd like to show past N years depending on which years is selected in the slicer and I can only able to get one (in this case last column on the matrix changes depending on the year).

 

2. Would like to show (at the very end of the matrix) change in sales depending on the year is selected in the slicer. (E.g.: if user select 2024 in the slicer, I want to show change in sales (subtraction) previous year (int his example 2023) minus slicer year (in this example 2024). same thing if 2023 is selected should show (2023 sales minus 2022) so on and so forth.

 

Baba_0-1713549438081.png

Baba_1-1713549483378.png

Baba_2-1713549532767.png

Thanks again!

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.