Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I have a table that looks like this. Note that I want to group by "ID". ID 3 has all blanks so it doesn't fit the criteria. 1 does because at least one value is not blank. 2 also fits the criteria since one row is not blank.
| ID | Value |
| 1 | 3 |
| 1 | 3 |
| 2 | 4 |
| 2 | |
| 3 | |
| 3 | |
| 3 | |
| 4 | 5 |
I would want the result to look like this
| ID | Value | Result |
| 1 | 3 | Yes |
| 1 | 3 | Yes |
| 2 | 4 | Yes |
| 2 | Yes | |
| 3 | No | |
| 3 | No | |
| 3 | No | |
| 4 | 5 | Yes |
Solved! Go to Solution.
this is how you can
Столбец =
VAR _currentvalue = [ID]
ВАР _Результаты=
ВЫЧИСЛИТЬ (
СТРАНЫ (),
ФИЛЬТР ( 'таблица', 'таблица'[ID] = _currentvalue && IПУСТО ('таблица'[значение] ))
ВОЗВРАЩАТЬСЯ
ЕСЛИ( ЕСТЬПУСТО(_Результаты)||_Результаты=1,"ДА",
"НЕТ"
)

also possible like this:
Column =
VAR _currentvalue = [ID]
VAR _Results=
CALCULATE (
COUNTROWS (),
FILTER ( 'tbl', 'tbl'[ID] = _currentvalue && ISBLANK ( 'tbl'[Value] ) ))
RETURN
if (_Results >= 2,"NO","YES")
Hi @user35131 ,
Like this?
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel
Proud to be a Super User!
Hi @user35131 ,
Let me know if this works for you.
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel
Original Table
Add Index to keep original order
Group rows as above
Expand Detail
Add Conditional column
Then I renamed it and changed types.
Proud to be a Super User!
this is how you can
Столбец =
VAR _currentvalue = [ID]
ВАР _Результаты=
ВЫЧИСЛИТЬ (
СТРАНЫ (),
ФИЛЬТР ( 'таблица', 'таблица'[ID] = _currentvalue && IПУСТО ('таблица'[значение] ))
ВОЗВРАЩАТЬСЯ
ЕСЛИ( ЕСТЬПУСТО(_Результаты)||_Результаты=1,"ДА",
"НЕТ"
)

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 46 | |
| 43 | |
| 39 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 31 | |
| 27 | |
| 24 |