Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Use filter function for filtering data then i save it into one variable "newTable".
Now i want to access disitinct vlaues from one of column filter table but cannot access column form table store in variable.
How can i do this in single step?
Solved! Go to Solution.
Hey @Ali123 ,
it doens't really work like that with variables. You cannot just replace a table with a variable and access the column.
In general the following approach shoud work:
Category =
DISTINCT (
SELECTCOLUMNS (
FILTER (
telecom_customer_churn,
telecom_customer_churn[churn Category] <> BLANK ()
),
"churn Category", [churn Category]
)
)
For filtering CALCUALTETABLE is the better choice compared to FILTER, so would even use the following approach:
Category =
DISTINCT (
SELECTCOLUMNS (
CALCULATETABLE (
telecom_customer_churn,
telecom_customer_churn[churn Category] <> BLANK ()
),
"churn Category", [churn Category]
)
)
If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
Best regards
Denis
Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic
Hey @Ali123 ,
it doens't really work like that with variables. You cannot just replace a table with a variable and access the column.
In general the following approach shoud work:
Category =
DISTINCT (
SELECTCOLUMNS (
FILTER (
telecom_customer_churn,
telecom_customer_churn[churn Category] <> BLANK ()
),
"churn Category", [churn Category]
)
)
For filtering CALCUALTETABLE is the better choice compared to FILTER, so would even use the following approach:
Category =
DISTINCT (
SELECTCOLUMNS (
CALCULATETABLE (
telecom_customer_churn,
telecom_customer_churn[churn Category] <> BLANK ()
),
"churn Category", [churn Category]
)
)
If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
Best regards
Denis
Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 60 | |
| 49 | |
| 30 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 131 | |
| 103 | |
| 58 | |
| 39 | |
| 31 |