The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi all, many thanks in advance.
I have used this post to complete 50% of what I need for my report.
I need help with DAX. Instead of having one column in my slicer from one table, I require 2 columns that have been unioned from 2 different tables because each table has a different meaning. The two columns will be used as a hierarchy in the slicer to allow the user to select either the top OR select the lower level values.
My progress so far:
Step 1: create the slicer using a union and summarize to bring in 2 columuns [Division] and [Branch]. This step works fine.
Measure =
Many thanks!
Solved! Go to Solution.
Hi All, I managed to solve this myself by tinkering with different methods. But it all came down to just creating 2 separate measures; one for [Division] and one for [Branch]. Then I applied both measurs to the visual as a filter and set both the values = 1.
Division Measure =
Branch Measure =
Hi All, I managed to solve this myself by tinkering with different methods. But it all came down to just creating 2 separate measures; one for [Division] and one for [Branch]. Then I applied both measurs to the visual as a filter and set both the values = 1.
Division Measure =
Branch Measure =
Hi lbendlin, I should have explained this differently. The [Division] and [Branch] fields from each of the two tables have two separate meanings. First being, the Leader of the Project (Lead Division and Lead Branch) and the Second being, the Division and Branches who do the work on the projects (multiple Division and Branches can work on a project).
I have 2 visuals and each use [Division] and [Branch] from two different tables, but i only want 1 slicer to affect both visuals.
1) the total number of projects (Lead Division and Lead Branch)
2) the total number of hours worked on a project (Contributing Division and Contributing Branch).
I hope this makes sense.
No need for DAX. Add the two columns to the slicer in the right order. The hierarchy will automatically be created for you.