March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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,"ДА",
"НЕТ"
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
146 | |
97 | |
79 | |
69 |