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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Need to replace cell value with dynamic value

Hi, I need help to create a dynamic table

Lets say I have 2 table as below 

Table1:

GabrielLee_0-1607390815911.png

Table2:

GabrielLee_1-1607390870762.png

What I need:

1. Calculate sum of 2017, 2018, 2019 profit and sum of cost in table2 as below

YearProfitCost
20173610
20186710
20193610

 

2. I need the sum of profit and cost to be dynamic as i filter the product

 example: Top 3 product based on profit

 

here is the link of the report

https://drive.google.com/file/d/1vLQ-R4iOiYZC8rbGat_kM4zKRhQ68Phi/view?usp=sharing

 

I'm new to Power BI so any help will be much appreciate.

 

1 REPLY 1
lbendlin
Super User
Super User

Your first step will be to unpivot table 1. The rest can then be done in the UI.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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