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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
RDHR
Frequent Visitor

Add a new column in a table to change measure value based on the row level category

Hi,

I am trying to create a table in power bi like the one listed below.  Can anybody advise how to do that? Thanks!!

2024Rate column is a measure calculation.

2025Rate= 2024Rate +/- Increase Rate from raw data for each category.

 

 

table visulization:

category2024Rate2025Rate
12%3%
23%5%
32%3%
45%6%
56%9%

 

Raw data

categoryIncrease rate
11%
11%
11%
11%
31%
22%
41%
53%

 

 

1 ACCEPTED SOLUTION
mickey64
Super User
Super User

Step 1: I use 2 data tables.

    '2024Rate' table:

    mickey64_0-1695393531876.png

    'Raw data' table:

    mickey64_1-1695393579325.png

Step 2: I add a relationship.

    mickey64_2-1695393768876.png

Step 3: I add '2025Rate' column to '2024Rate' table.

    2025Rate = [2024Rate]+CALCULATE(AVERAGE('Raw data'[Increase rate]),ALLEXCEPT('2024Rate','2024Rate'[category]))

    mickey64_3-1695393919616.png

 

 

View solution in original post

2 REPLIES 2
mickey64
Super User
Super User

Step 1: I use 2 data tables.

    '2024Rate' table:

    mickey64_0-1695393531876.png

    'Raw data' table:

    mickey64_1-1695393579325.png

Step 2: I add a relationship.

    mickey64_2-1695393768876.png

Step 3: I add '2025Rate' column to '2024Rate' table.

    2025Rate = [2024Rate]+CALCULATE(AVERAGE('Raw data'[Increase rate]),ALLEXCEPT('2024Rate','2024Rate'[category]))

    mickey64_3-1695393919616.png

 

 

RDHR
Frequent Visitor

Thank you!!

Helpful resources

Announcements
Europe Fabric Conference

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.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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