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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

How to sum the values

Hi Experts,

 

I have the Actual table and Plan table, I have appended the tables and created new table.

 

The problem is, i have period in Actual table but not in Plan, so what i have done is I just changed the null values to 0 while appending Plan data into Actual.

 

What I need is, when I select the month in slicer as 1, in the period column it should automaticaly filter 0 and selected value in slicer and calculate the values.

 

how to do that, please help

5 REPLIES 5
AkhilAshok
Solution Sage
Solution Sage

Best option is to keep the Plan and Actual as 2 seperate tables, and create common dimension tables around it, thereby making a Star Schema. You can watch the below video for more info:

 

https://www.sqlbi.com/tv/budgeting-with-power-bi-pass-austria/

 

Anonymous
Not applicable

Hi @Anonymous ,

 

Could you Please share the snapshot of your table with records.
I am not getting the last line.

 

Regards,
Amit

Anonymous
Not applicable

Test.JPG

 

In the above, if I select a value as 1 in the slicer, it should calculate the plan. but if you see the period as 1 the plan is 0. hope you can understand. if I select slicer value as "1", then it should calculate the selected value + Period = 0  values as well.

Anonymous
Not applicable

Hi All,

 

Any luck?!

Anonymous
Not applicable

HI @Anonymous ,

You can do unpivot column to actual and plan fields, then you can write a formula to summary them based on category fields.

Unpivot columns (Power Query)

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

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

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.