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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.