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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.