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
prateeks
Frequent Visitor

Relationship between dimension fields

Hi, I have a very simple dimenion model and ssas cube as below.

Now when I connect to cube using PBI desktop, I want to create a simple bar chart showing number of customers in each region.

Basically count of CUST_CODE in each CUST_REGION. But I am not able to do it because PBI doesn't allow me to drag CUST_CODE to value. 

 

When I just connect to the database directly to the tables and try to do the same thing, it works.

How to do it in the cube? 

 

CUBEDWH.PNG

 

 

1 ACCEPTED SOLUTION

@prateeks

I make a test with a table visual. It is possible to create a table visual using the dimension fields you mention. It is impossible to drag them to Values section of other charts in Live mode.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-yuezhe-msft
Employee
Employee

@prateeks,

What error message do you get in Power BI Desktop? What mode do you choose to import data from SSAS cube to Power BI Desktop, import or connect live?

Do you establish 1:many relationship between DIM_CURR and FACT_TRANS table , and establish 1:many relationship between DIM_CUSY and FACT_TRANS table? If so, make sure the filter direction is set to Bi directional.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Lydia,

 

- There is no error message, only PBI only doesn't allow to drop the field into "Values".

- I am using connect live.

- Yes the relationship between DIM & FACT is 1:many

- I am using SSAS Multidimensional model, so cannot set the bi-directional filters.

 

Do I need to use tabular mode?

@prateeks,

I am unable to reproduce this issue when connecting to SSAS Multidimensional model with Connect Live mode. I suspect the issue is related to the relationship you create between dimension and fact tables. Please check the relationship in SSAS side.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Lydia,

 

Its very straight forward relationship between DIM & FACT.

DIM is directly linked to FACT. Please see below details - 

Capture1.PNGCapture2.PNGCapture3.PNGCapture4.PNG

 

 

@prateeks

I make a test with a table visual. It is possible to create a table visual using the dimension fields you mention. It is impossible to drag them to Values section of other charts in Live mode.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.