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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
SEPA
Frequent Visitor

Join/Merge two table and assign new value to category

Dear all,

 

i have an situvation were i need to join two tables and calculate value based on codition and fill the new value to another category.

 

SEPA_0-1669913788570.png

if you see the first table, i have kep 0 for the category "Sales Online" which i need do the sum of all lead_number count and do the sutraction where source key =10

 

any idea.... i have tried Switch but didnt help me..

 

Thanks

 

2 REPLIES 2
Anonymous
Not applicable

Hi @SEPA,

I think you can take a look at the following blog to create a formula based on calculated group if help with your scenario:

Matrix In Power BI Using Calculation Groups - Enterprise DNA

Regards,

Xiaoxin Sheng

Actually, the right table is my dimension table and the left table coming from fact table.. i need to do the subtraction the lead count where source key=10 and get that value and assign to Sales online category

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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