cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tejapowerbi123
Helper IV
Helper IV

Filter not working

Hello Community,
Can you please review below and provide your suggestion?
I want to filter “wages” and “travel” based on “Province” and it is not filtering.
Thanks


Budget Awarded Display Sum (calculated column) =
SWITCH (
TRUE (),
'Connected Table'[Category] = "Wages", SUM(Raw Data [wages]),
'Connected Table'[Category] = "Travel", SUM(Raw Data [Travel])
)

community.png

 

1 ACCEPTED SOLUTION
Greg_Deckler
Super User IV
Super User IV

@tejapowerbi123 - Maybe try unpivoting your Wages and Travel columns and then relate the two tables? What is the expected outcome? Where are you creating the calculated column?

 

Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
Greg_Deckler
Super User IV
Super User IV

@tejapowerbi123 - Maybe try unpivoting your Wages and Travel columns and then relate the two tables? What is the expected outcome? Where are you creating the calculated column?

 

Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

@Greg_Deckler  Thank you so much for your suggestion.

User has slicer to province and once they select the slicer they can see the result below,

 

Slicer
Province
Saskatchewan
Quebec

 

slicer selected for SASKATCHEWAN
Final Result
CategoryTotal
Wages1200
Travel220

@tejapowerbi123 - So, good?


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Get Ready for Power BI Dev Camp

Power BI Dev Camp - June 24th

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors