Forum Discussion
Include based on slicer
- 11 months ago
Yes I can
You need a table like this though,
File again in the same location
If this helped, please consider giving kudos and mark as a solution
me in replies or I'll lose your thread
Want to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page
Consider voting this Power BI idea
Francesco Bergamaschi
MBA, M.Eng, M.Econ, Professor of BI
I would appreciated via DAX. Thanks
Done, same location folder
If this helped, please consider giving kudos and mark as a solution
me in replies or I'll lose your thread
Want to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page
Consider voting this Power BI idea
Francesco Bergamaschi
MBA, M.Eng, M.Econ, Professor of BI
- Jyaul112211 months ago
Helper III
Thanks for your reply but I can not write condition for more than 200 unique Projects.
VAR Selection = VALUES ( Dim[Project] )VAR SelectionExpandedA = UNION( Selection, {"Include A"} )VAR SelectionExpandedB = UNION( Selection, {"Include B"} )VAR SelectionExpandedAB = UNION( Selection, {"Include A"},{"Include B"} )VAR Result=IF (("P1" IN Selection || "P2" IN Selection) && ("P3" IN Selection || "P4" IN Selection),CALCULATE( MAX ( Facts[Risk Value] ), KEEPFILTERS(Facts[Project] IN SelectionExpandedAB )),IF ("P1" IN Selection || "P2" IN Selection,CALCULATE( MAX ( Facts[Risk Value] ), KEEPFILTERS(Facts[Project] IN SelectionExpandedA ) ),IF ("P3" IN Selection || "P4" IN Selection,CALCULATE( MAX ( Facts[Risk Value] ), KEEPFILTERS(Facts[Project] IN SelectionExpandedB )))))RETURN ResultCould you please do needfull ? Thanks- FBergamaschi11 months ago
Super User
Yes I can
You need a table like this though,
File again in the same location
If this helped, please consider giving kudos and mark as a solution
me in replies or I'll lose your thread
Want to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page
Consider voting this Power BI idea
Francesco Bergamaschi
MBA, M.Eng, M.Econ, Professor of BI