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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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 Kudoed Authors