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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
BenjaminBoothBW
Frequent Visitor

Visualizing hierarchical data

Hello.

I have some problems visualizing data in a hierarchical format. I have tried to show the data in the tables below.

Process Hierarchies

Process NameLevel 0Level 1Level 2Level 3
Trigger_XTriggerXNULLNULLNULL
Master_ProcessTriggerXMaster_ProcessNULLNULL
Sub_processTriggerXMaster_ProcessSub_ProcessNULL
Sub_sub_processTriggerXMaster_ProcessSub_processSub_sub_Process

 

Process Runs

Process NameRun Time
Master_Process2
Master_Process3
Sub_process1
Sub_sub_process4
Sub_process1
Sub_sub_process4

 

When I try to visualize this data in Power BI, I have two problems:

1. there are blank rows on each level (see picture)

BenjaminBoothBW_2-1710768189937.png

 

2. When I visualize the data, it is doing the aggregation of its children instead of calculating only at the level that it is on. For example, Power BI would calculate the average run time of master_process as (2+3+1+4+1+4)/6, but I want it to only calculate on the level that it is at, so it would instead be (2+3)/2

 

I am unsure if this is a data modelling issue or something that should be done in DAX. 

4 REPLIES 4
v-xuxinyi-msft
Community Support
Community Support

Hi @BenjaminBoothBW 

 

In my tests, I do not have the same problem as you are experiencing.

vxuxinyimsft_0-1710814493209.png

 

But I found another problem, the value of "Sub_process" in this Matrix does not correspond to the value in the "Process Runs" table.

 

My suggestion:

vxuxinyimsft_1-1710816270670.png

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello Yulia, thanks for your reply. 

I have edited sub-process to sub-subprocess in the example data. 

In the report you posted, I still see the same problem that I was describing. For example, I want Sub_process to show the average of (1+1)/2 = 1 and not including its children as it is currently doing: (1+1+4+4)/4 = 2.5.

I want the NULL row below sub_process to be the result of sub_process if that makes sense? (See screenshot) 

BenjaminBoothBW_1-1710833472041.png

 

 

 

 

MNedix
Solution Supplier
Solution Supplier

Check your data model and try to get rid of Cross filters going in Both directions. Also, try replacing "null" or blanks with something meaningful like "not applicable" or "n/a".

Hi MNedix. Thanks for your reply. There is no cross filtering. The relationship is a simple one to many from the hierarchy dimension to the fact table. 

Regarding the blanks: I have found that the blanks actually show the value that I want to be shown at the level above it. This leads me to the think that I need to change some things in the underlying sql, but not sure exactly

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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