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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Creating a calculated table

I have created a table with the following code:

 

Tabela de Apoio =
SUMMARIZE (
Pedidos;Pedidos[Dia].[Date];Pedidos[Dia da Semana];Pedidos[Número dia da semana];
"Unidades Pedidas"; SUM(Pedidos[REQUESTED_UNIT_QTY] );"Pedidos";COUNT(Pedidos[DISTRO_NBR]);"SKUs diferentes";DISTINCTCOUNT(Pedidos[ITEM_ID]);"Un./Ped."; SUM(Pedidos[REQUESTED_UNIT_QTY])/COUNT(Pedidos[DISTRO_NBR]);"Un./SKU";SUM(Pedidos[REQUESTED_UNIT_QTY])/DISTINCTCOUNT(Pedidos[ITEM_ID]);"Ped./SKU";COUNT(Pedidos[DISTRO_NBR])/DISTINCTCOUNT(Pedidos[ITEM_ID])
)

I am analysing the Un./SKU indicator by day but I want to filter the table results with some other columns from item_master and Pedidos to make different analyses, for example ITEM_MASTER[dept_name]. I don't want to get the disaggregated results by adding ITEM_MASTER[dept_name] to the table

 

1 REPLY 1
v-sihou-msft
Microsoft Employee
Microsoft Employee

@Anonymous

 

How did you build relationship between ITEM_MASTER and Pedidos?

 

If you want to aggregate data on "ITEM_MASTER[dept_name]" level, you must have relationship between ITEM_MASTER and this calculated table, which means you should have common column ("ITEM_MASTER[dept_name]") in both tables.

 

Regards,

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.