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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. 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.


@ 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!:
Mastering Power BI 2nd Edition

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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.