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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
RichOB
Post Partisan
Post Partisan

Help with measure - combining 2 categories into 1

Hi, I'm looking to combine 2 general ledger codes to make 1 code/1 figure but my measure is not working. 

I have 2 tables. first is Category_Table:

GL CodeGL Code Name
4202RI
4201RCI

 

The £ table is called Amount_Table

 

GL CodeAmount
4202£300
4201£100

 

What measure will make a code called GLCombined with £400 in one table?

 

Thanks

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@RichOB , You can use below measure

 

GLCombinedAmount =
CALCULATE(
    SUM(Amount_Table[Amount]),
    Amount_Table[GL Code] IN {4201, 4202}
)
 
If you want to create a new table with the combined GL code and amount
GLCombinedTable =
SUMMARIZE(
FILTER(
Amount_Table,
Amount_Table[GL Code] IN {4201, 4202}
),
"GL Code", "GLCombined",
"Amount", SUM(Amount_Table[Amount])
)



Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

1 REPLY 1
bhanu_gautam
Super User
Super User

@RichOB , You can use below measure

 

GLCombinedAmount =
CALCULATE(
    SUM(Amount_Table[Amount]),
    Amount_Table[GL Code] IN {4201, 4202}
)
 
If you want to create a new table with the combined GL code and amount
GLCombinedTable =
SUMMARIZE(
FILTER(
Amount_Table,
Amount_Table[GL Code] IN {4201, 4202}
),
"GL Code", "GLCombined",
"Amount", SUM(Amount_Table[Amount])
)



Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors