The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
i am trying to migrate Intersect function in Spotfire to DAX in Power BI.
Spotfire Expression - Column_Name = SUM([Value]) OVER(INTERSECT([Company Name],[Flag],[Name]))
DAX Expression i am writing -
Column_Name = CALCULATE(SUM(Table[Value]),ALLEXCEPT(Table[Company Name],Table[Flag],Table[Name])) --But this is not resulting as expected.
Please help
Intersect Defination in Spotfire -
Returns the intersected rows from nodes in different hierarchies. See also AllPrevious and All.
Example of a custom expression:
Intersect(Parent([Axis.X]), All([Axis.Color]), Parent([Axis.Rows]), ...)
Example of a calculated column:
Sum([Sales]) OVER Intersect([Category], AllPrevious([Date]))
Sorry intersect function in DAX is different from intersect in Spotfire
Please convert provided spotfire expression into DAX
@Anonymous That is very hard to do when you don't know Spotfire language because this is a Power BI board and we all do not know every possible language that exists. See previous reply where I ask to explain what INTERSECT does in Spotfire and point you to the INTERSECT function in DAX.