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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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.



Follow on LinkedIn
@ 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!:
Power BI Cookbook Third Edition (Color)

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.