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
To obtain what you are looking for, there are two ways:
1 - all in DAX
2 - getting help from the tables
To make it fast, I choosed option 2, here is the file for you to inspect
https://drive.google.com/drive/folders/1ygPYgruaZZy8Spvekfe4j6qd_N2eng7n?usp=sharing
If you need a full DAX solution keeping your tables, I shall look into that, I think it is feasible but will need a bit more time
Best
If this helped, please consider giving kudos and mark as a solution
mein 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
- FBergamaschi11 months agoSuper User
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 agoHelper 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 agoSuper 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