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 September 15. Request your voucher.
Hi Team
I am creating a matrix view with below data.
Matrix View
Dax which I have used to create the profit is
Solved! Go to Solution.
@Anonymous , Try like
Profit = Switch( True() ,
not(Isinscope(Table[Country])) , SUMx(Sales,Sales[Sales]*0.048)
SUMx(Sales,Sales[Sales]*0.05)
)
Try to use isinscope
https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/
@Anonymous , Try like
Profit = Switch( True() ,
not(Isinscope(Table[Country])) , SUMx(Sales,Sales[Sales]*0.048)
SUMx(Sales,Sales[Sales]*0.05)
)
Try to use isinscope
https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/
Could you please advise what line I should write in order to get "TOTAL" in "checking" column in front of "TOTAL" in region column?
Thanks and regards
Let me check this in bigger data and multiple columns. the solution which you provided for the above data set, worked like cream. Kudos to you. Thanks a ton
User | Count |
---|---|
15 | |
13 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
19 | |
13 | |
9 | |
5 |