The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
The code below does not allow me to use this part
"Cost", SUM ( LOOKUPVALUE ( Cost[ProductCost], Cost[ProductKey], Product[ProductKey] ))
It shows a mistake.
Could you please help me.
Here is a code below:
ProductCategoryCostCT = SUMMARIZE (
SELECTCOLUMNS (
Product,
"CategoryName",Product'[CategoryName],
"ProductCost", LOOKUPVALUE ( Cost[ProductCost], Cost[ProductKey], Product[ProductKey] )
),
[CategoryName],
"Cost", SUM ( LOOKUPVALUE ( Cost[ProductCost], Cost[ProductKey], Product[ProductKey] )),
"Count", COUNT ( Product[ProductName] )
)
Hi @OlegV ,
Could you provide some example data and screenshots of the errors you are encountering, which could help us better understand and solve your problem.
How to Get Your Question Answered Quickly - Microsoft Fabric Community
If it does not help, please provide more details with your desired out put and pbix file without privacy information.
Best Regards,
Ada Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@OlegV Are you getting an error or ?