March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello to all,
I have a series of calculated measures and of these measures I would like to make a simple arithmetic average.
Is there someone who can help me?
From [-12 OH] to [-1 OH] are Measures and I need to calculate the Average. In Figure 1 I have full of Data Sets while in Figure 2 I haven't Date in [-12 OH] to [-9 OH]. In the first case the average must correspond on all the measures while in the second case only on the full ones
Hi @GoodMan85,
I suggest you use the matrix table
I create some simple data like the following:
And create a matrix table
The result:
If I misunderstood you meaning, please let me know.
Here is my pbix file you can reference.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @GoodMan85 ,
Try the following code:
Average of measures =
AVERAGEX (
FILTER( UNION (
SUMMARIZE ( table, table[itemcode], "@MeasureTotal", [Measure] ),
SUMMARIZE ( table, table[itemcode], "@MeasureTotal", [Measure 2] ),
SUMMARIZE ( table, table[itemcode], "@MeasureTotal", [Measure 3] )
),[@MeasureTotal] <> BLANK()),
[@MeasureTotal]
)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsMarch 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
165 | |
116 | |
63 | |
57 | |
50 |