Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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?
Thanks in Advance
AVERAGEX(ADDCOLUMNS(SUMMARIZE('SP: Heatmap - Sub','SP: Heatmap - Sub'[Area],'SP: Heatmap - Sub'[Control]),"Value",CALCULATE(AVERAGE('SP: Heatmap - Sub'[Values]))),[Value])
Try this
Answer =
SWITCH(TRUE(),
HASONEVALUE(Stats[Cluster]) && HASONEVALUE(Stats[Column]),SUM(Stats[Amount]),
AVERAGEX(Stats,Stats[Amount])
)
Click here to download solution
I am not sure I understand your problem.
We want to help you but your description is too vaugue. Please write it again clearly.
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
Hi @speedramps ,
Thanks for the Reply,
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
Please click on the link to downlaod the solution.
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.
Click here to download solution
Answer = SWITCH(TRUE(), HASONEVALUE(Stats[Cluster]) && HASONEVALUE(Stats[Column]),SUM(Stats[Amount]), AVERAGEX(Stats,Stats[Amount]) )
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
107 | |
99 | |
99 | |
38 | |
37 |
User | Count |
---|---|
157 | |
121 | |
73 | |
73 | |
63 |