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.
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
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
7 | |
7 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |