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.
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! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
85 | |
65 | |
51 | |
45 |
User | Count |
---|---|
217 | |
88 | |
81 | |
65 | |
56 |