Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
i'm trying to make very simple filtering by using DAX. The situation is this:
1. I have a table 'ekoseer Sopimus'
2. I have a measure, which counts how many Id's I have in table
Then I would like to count Id's which "'SopimuksenTila" is value "2". The result should be three.
I'm trying to make a new measure which uses measure Id_sopimus_kpl and filters it, but I can't make working syntax:
What is the right syntax?
I know this should be very simple, but for some reason my PowerBi changes commas to semicolons and syntax won't work.
Thanks for helping!
Solved! Go to Solution.
if your system uses semicolons as list separator then you should use it in the measures too
you can validate you syntax here:
https://www.daxformatter.com/
right now I'd suggest:
1) replacing commas with semicolons
2) the column name should be
'ekoseer Sopimus'[SopimuksenTila]
I think there is an apostrophe missing before '['
Proud to be a Datanaut!
hi, @jussiwaisto
You should use this simple formula as below:
Measure =
CALCULATE([Id_sopimus_kpI], 'ekoseer Sopimus'[Id]="1")
and the column name should be
'ekoseer Sopimus'[SopimuksenTila]
and if you are using the wrong delimiter, replace the "," with a ";" and see if it works.
Best Regards,
Lin
@jussiwaisto wrote:Hi,
i'm trying to make very simple filtering by using DAX. The situation is this:
1. I have a table 'ekoseer Sopimus'
2. I have a measure, which counts how many Id's I have in table
Then I would like to count Id's which "'SopimuksenTila" is value "2". The result should be three.
I'm trying to make a new measure which uses measure Id_sopimus_kpl and filters it, but I can't make working syntax:
What is the right syntax?
I know this should be very simple, but for some reason my PowerBi changes commas to semicolons and syntax won't work.
Thanks for helping!
1. First you need to count the ID table
2. then, Calculate( <your measure> , your filter = "2" )
What i have seen is too many open ")" in your syntax.
@jussiwaisto wrote:Hi,
i'm trying to make very simple filtering by using DAX. The situation is this:
1. I have a table 'ekoseer Sopimus'
2. I have a measure, which counts how many Id's I have in table
Then I would like to count Id's which "'SopimuksenTila" is value "2". The result should be three.
I'm trying to make a new measure which uses measure Id_sopimus_kpl and filters it, but I can't make working syntax:
What is the right syntax?
I know this should be very simple, but for some reason my PowerBi changes commas to semicolons and syntax won't work.
Thanks for helping!
1. First you need to count the ID table
2. then, Calculate( <your measure> , your filter = "2" )
What i have seen is too many open ")" in your syntax.
Thank you very much! It works now!
hi, @jussiwaisto
You should use this simple formula as below:
Measure =
CALCULATE([Id_sopimus_kpI], 'ekoseer Sopimus'[Id]="1")
and the column name should be
'ekoseer Sopimus'[SopimuksenTila]
and if you are using the wrong delimiter, replace the "," with a ";" and see if it works.
Best Regards,
Lin
if your system uses semicolons as list separator then you should use it in the measures too
you can validate you syntax here:
https://www.daxformatter.com/
right now I'd suggest:
1) replacing commas with semicolons
2) the column name should be
'ekoseer Sopimus'[SopimuksenTila]
I think there is an apostrophe missing before '['
Proud to be a Datanaut!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
118 | |
75 | |
46 | |
44 | |
34 |
User | Count |
---|---|
179 | |
89 | |
69 | |
47 | |
47 |