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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
seefadeeb
Frequent Visitor

Total by filtering other associated columns

 

EMPLOYEECodeExpense TypeTotal Amount
Shirley3660TAXI145
Yunlei3660TAXI105
Chuyue3189TAXI727
Shirley3660MEALS126
Chuyue3189MEALS342
Tan3660TRAINING161
Yunlei3660FEES225
Yunlei3660MEALS102
Guangke2658PRINTING AND COURIER SERVICES70
Guangke2658MEALS126
Guangke2658SUPPLIES - OTHER259
Shirley3660LODGING748
Chuyue3189LODGING361

 

 

In the previous table, if we select Employee "Shirley" in the slicer filter, we should get the sum of total amount as 1226 as in the below table. It should sum total amount of all the associated codes & expense type.

In this example, Shirley has code of 3660 and expense type - Taxi, Meals, Lodging.  Now it should sum all the rows of code 3660 and expense type - Taxi, Meals and Lodging for all the employees.

 

EMPLOYEECodeExpense TypeTotal Amount
Shirley3660TAXI145
Yunlei3660TAXI105
Shirley3660MEALS126
Yunlei3660MEALS102
Shirley3660LODGING748
  Sum1226

 

@Fowmy  @amitchandak @Ahmedx @Ritaf1983 

1 ACCEPTED SOLUTION

5 REPLIES 5
Ahmedx
Super User
Super User

This is the third variant, I recorded a video for you so that you understand how to create a model in power query

https://1drv.ms/v/s!AiUZ0Ws7G26RjHjBqQLMSuBbSLUn?e=aIZfl8

Ahmedx
Super User
Super User

and try this

Screenshot_1.png

Ahmedx
Super User
Super User

you must create a suitable model

Screenshot_1.png

It should also filter expense type, the answer should be 1226 rather than 1612. Here it should also, remove filters on expense types fees and training which are not related to Shirley

pls try this

Screenshot_2.pngScreenshot_3.png

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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