- 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

Adding a clause in the following formula
I have a formula that I got which was written by somebody else.
Top 100K accounts = SUMX ( FILTER ( GROUPBY ( 'Dataset', 'Dataset'[CompanyName], "_1", SUMX ( CURRENTGROUP (), 'Dataset'[Amount] ) ), [_1] >= 100000 ), [_1] )
I want to add a clause and filter the data by using a categorical column. Like country = United Kingdom. How would I add this in the formula above?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hello @Samarth_18 , it does not work. I have opted for page filters for now. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Datagulf ,
Please try this:-
Top 100K accounts =
SUMX (
FILTER (
GROUPBY (
'Dataset',
'Dataset'[CompanyName],
'Dataset'[country],
"_1", SUMX ( CURRENTGROUP (), 'Dataset'[Amount] )
),
[_1] >= 100000
&& [country] = "United Kingdom"
),
[_1]
)
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hello @Samarth_18 , it does not work. I have opted for page filters for now. Thanks.

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
11-08-2024 10:28 AM | |||
11-06-2024 08:10 PM | |||
09-02-2024 12:02 AM | |||
07-20-2024 02:04 AM | |||
12-26-2024 09:18 PM |
User | Count |
---|---|
87 | |
81 | |
53 | |
38 | |
35 |