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
Zerpius
Regular Visitor

Managing Relationships

 

Hello,

 

I am rather new to concept of data modeling and Power BI and I ran into one problem.

I created two tables (Plan and Actuals), they are connected through dimTime table (date), and dimGrupe (groups of Products).

 

In Treemap chart I have following issue:

 

I added Products from fact table in detail selection. When I select

one product Table chart refreshes and shows Actual, Actuals LY for that product and selected period.

 

But that doesn't seem to work with Plan17 column. No matter what product I select it always shows

Group Plan value for selected period. Why it doesn't show Product Plan17 value for selected period?

 

Measure for Plan Column: Prodajna Plan17 = SUM(Plan2017[Plan2017])

 

dimPlan table has following columns: Product, Group, date, month, Year, Sales and Plan17 (calculated field)

All of those Columns are filtered from dimPodatci table (filtered 2016) and then Plan 17 is calculated by multiplying

Sales by product with growth rate. 

 

Thanks for help!

 

treemap.png

 

Selected Product.png

 

 

 

 

 

Report.png

 

ModelBI.png

1 ACCEPTED SOLUTION

Solved it!

I needed to create dimProducts table and then use Products from this dimension

in Treemap details. I originally used Products from Fact dimension, and that did not work!

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

You may need to change your cross-filtering directions on some of your relationships to achieve what you are going for. Not sure what else I can say without some sample data to try to recreate.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Solved it!

I needed to create dimProducts table and then use Products from this dimension

in Treemap details. I originally used Products from Fact dimension, and that did not work!

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.