Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Calculate average of a a calculated measure

I have a table called orders for which I've created 3 vinculated measures:

% Penetración = [Net Orders]/[Net Order Date]
Net Orders = CALCULATE(DISTINCTCOUNT(ordenes_magento[order_id]),FILTER(ordenes_magento, NOT ordenes_magento[Estado] IN {"Devuelto(100%)", "Cancelado", "Pendiente"}))
Net Order Date = CALCULATE([Net Orders],
ALL('M_A sin EAN duplicados'[SKU]),
ALL('M_A sin EAN duplicados'[EAN]),
ALL('M_A sin EAN duplicados'[descripcion]),
ALL('M_A sin EAN duplicados'[nombre_marca]),
ALL('M_A sin EAN duplicados'[nombre_clase]),
ALL('M_A sin EAN duplicados'[nombre_subnegocio]),
ALL('M_A sin EAN duplicados'[nombre_categoria]),
ALL('M_A sin EAN duplicados'[nombre_subcategoria]),
ALL('M_A sin EAN duplicados'[nombre_segmento]),
ALL('M_A sin EAN duplicados'[category]),
ALL('M_A sin EAN duplicados'[division]),
ALL('M_A sin EAN duplicados'[nombre_subsegmento]),
ALL('M_A sin EAN duplicados'[bfpp]),
ALL('M_A sin EAN duplicados'[formato]),
ALL(ordenes_magento[formato_venta]),
ALL(ordenes_magento[sku_consolidado]),
ALL(ordenes_magento[detalle_formato_venta]),
ALL(ordenes_magento[descripcion_tipo_venta]),
ALL(clientes_magento[rango_edad])
)


My goal is to create another measure that will hold a single scalar value and will be the average of '% Penetration' for the period filtered.

Can you help me please?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,
Thanks for @NaveenGandhi reply.
According to your description, you want to count the data that is not within the three states and calculate the total amount of data, and finally calculate the percentage number.
Here is my test data and steps

vheqmsft_0-1721958375334.png

Create measures

Net Order Date = COUNTROWS(orders_magento)
Net Orders = CALCULATE(DISTINCTCOUNT(orders_magento[order_id]),FILTER(orders_magento, NOT orders_magento[Status] IN {"Returned(100%)", "Cancelled", "Pending"}))
% Penetration = [Net Orders]/[Net Order Date]

Final output

vheqmsft_1-1721958433299.png

 

Best regards,
Albert He

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

What result do you get when you drag the % penetration measure to a card visual? 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @Anonymous ,
Thanks for @NaveenGandhi reply.
According to your description, you want to count the data that is not within the three states and calculate the total amount of data, and finally calculate the percentage number.
Here is my test data and steps

vheqmsft_0-1721958375334.png

Create measures

Net Order Date = COUNTROWS(orders_magento)
Net Orders = CALCULATE(DISTINCTCOUNT(orders_magento[order_id]),FILTER(orders_magento, NOT orders_magento[Status] IN {"Returned(100%)", "Cancelled", "Pending"}))
% Penetration = [Net Orders]/[Net Order Date]

Final output

vheqmsft_1-1721958433299.png

 

Best regards,
Albert He

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

NaveenGandhi
Super User
Super User

Hi @Anonymous 

please share sample data and expected output( attach screenshots too) to understand the problem better.

Thanks,
NG

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors