Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I have below table
T
ENAME | SNAME | NOWD |
John | Alex | 20 |
John | Alex | 20 |
John | Alex | 20 |
In Microsoft Access when I write query SELECT DISTINCT(NOWD), sname FROM T;
I get below output:
NOWD | SNAME |
20 | Alex |
How do I do the same in Power BI by writing a measure
Solved! Go to Solution.
Hi @vikrammankar ,
I suggest you to create a table visual by "Don't summarize" function in [NOWD] column in Value Field.
My Sample:
Result is as below.
Or you can create a calculated table with distinct (NOWD and SNAME).
Distinct Table =
SUMMARIZE('Table','Table'[SNAME],'Table'[NOWD])
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @vikrammankar ,
I suggest you to create a table visual by "Don't summarize" function in [NOWD] column in Value Field.
My Sample:
Result is as below.
Or you can create a calculated table with distinct (NOWD and SNAME).
Distinct Table =
SUMMARIZE('Table','Table'[SNAME],'Table'[NOWD])
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi
In DAX you have the similar function DISTINCT
Please check this microsoft article bellow to see some examples.
https://docs.microsoft.com/pt-pt/dax/distinct-table-function-dax
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |