The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi PowerBI community and hopefully I'll find an aswer here. 😊
My problem is that I have a simple AVERAGE(X) function because I'm using a table has been cross joined (a cartesian product). Now, when drilling down the smalledt granularity possible (eg. product code), I get a correct result, but when drill up to category, I get an average inside of that category, which is expected and logical behaviour.
Is it possible to make a derived measure out of the simple AVERAGE(X) measure that would sum whenever I "climb up" a dimension, eg. from product to category. I tried doing the following which is kind of what I am looking (I think):
View below wold show seperate inputted forecasts for some dates for the same product:
On the other hand, view below should show "total" (SUM) of each category:
If any of resident DAX experts could help, I would be very grateful 🙂
Thank you!
Solved! Go to Solution.
Hi there,
sorry for the lack of reply, just now got to it. I have to say, this honestly look a bit too complicated for me, but I have figured out (at least I think so) what to do:
This seems to work for now, I'll report back if there any unwanted occurences.
Thank you again!
Hi there,
sorry for the lack of reply, just now got to it. I have to say, this honestly look a bit too complicated for me, but I have figured out (at least I think so) what to do:
This seems to work for now, I'll report back if there any unwanted occurences.
Thank you again!
That's great. If it is a solution can you please mark it as solved?
Have a good week ahead!
Hi:
The INSCOPE function works well for your question. I'm not sure if you have subcat, but you can start with this approach. This should reveal the category % of total and thenhow the products reporting to this category contribute to their category. I hope it helps you.
DIVIDE([Sales Amount],
CALCULATE([Sales Amount], REMOVEFILTERS(Products[Category])))
or ,REMOVEFILTERS())
User | Count |
---|---|
28 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |