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 all,
Below is shown a matrix of 5 different matrixes "PLANT FPY" is an average of the first four.
the blanks shown have zero data as no product was ran in the area thus resulting in zero data and the average is taking it as zero.
Is there any way i can have the average not count areas that have no data?
Solved! Go to Solution.
Hi , @afos111
Here are the steps you can refer to :
(1)This is my test data , i put three measures in the visual :
(2)We can create a measure :
Measure 5 = var _count =IF( [Measure 2] <> BLANK() ,1 ,0)+IF( [Measure 3] <> BLANK() ,1 ,0)+IF( [Measure 4] <> BLANK() ,1 ,0)
return
DIVIDE( [Measure 2]+[Measure 3]+[Measure 4] , _count)
(3)Then we can ignore the BLANK() data to calculate the average of the three measures:
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
*five different measures
Hi , @afos111
Here are the steps you can refer to :
(1)This is my test data , i put three measures in the visual :
(2)We can create a measure :
Measure 5 = var _count =IF( [Measure 2] <> BLANK() ,1 ,0)+IF( [Measure 3] <> BLANK() ,1 ,0)+IF( [Measure 4] <> BLANK() ,1 ,0)
return
DIVIDE( [Measure 2]+[Measure 3]+[Measure 4] , _count)
(3)Then we can ignore the BLANK() data to calculate the average of the three measures:
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
thank you! this worked great, ill definetly be using this in the future.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
86 | |
73 | |
57 | |
52 |
User | Count |
---|---|
201 | |
137 | |
108 | |
73 | |
68 |