- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dax Measures
If(
Selectedvalue(sales[country]) = 'US',
Calculate(
Selectedvalue(sales[weight]) * Sales[Total Market],all excep(account, account[accountid],
All(asset)
),
Sales[Total Market]
- )
Dax measure not working, help required
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am not sure how your semantic model looks like or how your expected outcome looks like, but please try something like below whether it provides the expected result.
measurename: =
IF (
SELECTEDVALUE ( sales[country] ) = 'US',
CALCULATE (
SELECTEDVALUE ( sales[weight] ) * Sales[Total Market],
ALLEXCEPT ( account, account[accountid] ),
ALL ( asset )
),
Sales[Total Market]
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @swarnalvr ,
Agree with Jihwan_Kim!
Please provide sample data of all tables involved in DAX, the relationship between tables and your expected results according to the following post:
Re: How to Get Your Question Answered Quickly - Page 2 - Microsoft Fabric Community
It is difficult for us to understand what effect you want to achieve and where the problem lies with only DAX. Thank you for your cooperation!
Best Regards,
Dino Tao
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am not sure how your semantic model looks like or how your expected outcome looks like, but please try something like below whether it provides the expected result.
measurename: =
IF (
SELECTEDVALUE ( sales[country] ) = 'US',
CALCULATE (
SELECTEDVALUE ( sales[weight] ) * Sales[Total Market],
ALLEXCEPT ( account, account[accountid] ),
ALL ( asset )
),
Sales[Total Market]
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
07-03-2024 06:01 AM | |||
09-25-2024 08:50 AM | |||
06-18-2024 12:55 PM | |||
06-19-2024 08:36 AM | |||
11-26-2024 07:53 AM |