Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
User | Count |
---|---|
75 | |
75 | |
45 | |
31 | |
27 |
User | Count |
---|---|
99 | |
89 | |
52 | |
48 | |
46 |