cancel
Showing results for
Did you mean:

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Employee

## Matrix Drill Down error

Hi team ,

I have a matrix with rows,columns and values as the following :

In Values field :  i have averages (measure)

This is the following matrix :

The problem starts when i try to drill down my matrix from area level view to cluster level view :

the row wise averages are correct but the column wise averages are wrong

also when i use the "DRILL DOWN" functionality by selecting/Right -clicking the area row inorder to view the cluster level view :

the averages at column level are wrong

how can we tackle this problem?

AVERAGEX(ADDCOLUMNS(SUMMARIZE('SP: Heatmap - Sub','SP: Heatmap - Sub'[Area],'SP: Heatmap - Sub'[Control]),"Value",CALCULATE(AVERAGE('SP: Heatmap - Sub'[Values]))),[Value])

3 REPLIES 3
Super User

Try this

``````Answer =
SWITCH(TRUE(),
HASONEVALUE(Stats[Cluster]) && HASONEVALUE(Stats[Column]),SUM(Stats[Amount]),
AVERAGEX(Stats,Stats[Amount])
)``````

I am not sure I understand your problem.

Please DON'T copy & paste your DAX that does not work and expect us to fathom what you want to do.

Please just give a simple non technical functional description of what you want, then let us suggest the DAX. Thank you.

Provide example input data as table text (not a screen print) so we can import the data to build a solution for you.
Also provide the example desired output, with a clear description of the process flow.

Remember not to share private data ... we don't want you to get into trouble. 😧

Take time and care to use the same table and field names in the input, output and description so we can understand your problem and help you.

You will get a quick response if you put time, care and effort into writing clear problem descriptions.

Vaugue descriptions can waste your time and ourtime.

Look foward to helping you when the above information is forthcoming

Employee

Hi @speedramps ,

To be more specific ,

my goal is to find averages at area and cluster level.

as you are aware when we include 2 values under rows in a matrix it enables us to have drill through.

Area and cluser are my drill through option

when i drill from area level to cluster level , the vertical averages are showing wrong or same as area level averages

Thanks

Super User

It does exactly what you asked.

I asked you for more example data but you did not go to the effort to provide any.

Whereas I have taken a lot of uppaid time and effort to answer your question with an example and link.
Please be polite and accept this free solution and click thumbs up, if you wish to to receive more free support.
If you want somethings else but didnt ask the right question, then close this question and create a new one.

```Answer =
SWITCH(TRUE(),
HASONEVALUE(Stats[Cluster]) && HASONEVALUE(Stats[Column]),SUM(Stats[Amount]),
AVERAGEX(Stats,Stats[Amount])
)```

Announcements

#### New forum boards available in Real-Time Intelligence.

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

#### Fabric Monthly Update - May 2024

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

#### Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors