Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
kind of simple question:
How can I create a new text column with DAX in which it's filtered by another text column. I don't want to use the filter in the filterpane, but in the new column.
For example
Account names that have the filter Status = Active.
thank you
Solved! Go to Solution.
Hi @thhmez7 ,
According info your provided,pls refer the following sample:
sample data:
Dax for new column:
New Status = CALCULATE(MAX('Table'[Account]),
FILTER(ALL('Table'),
'Table'[Account]=EARLIER('Table'[Account])&&'Table'[Status]="Active"))
Fianl output result:
If you want to dynamically filter,I suggest you use measure and visual:
New Status1 = CALCULATE(MAX('Table'[Account]),FILTER(ALL('Table'),'Table'[Account]=MAX('Table'[Account])&&'Table'[Status]="Active"))
Final output:
Did I answer your question? If so ,pls mark my post as a solution,if not ,could you pls share your sample data and expected output result.Remember to remove confidential data.
Best Regards
Lucien
Hi @thhmez7 ,
According info your provided,pls refer the following sample:
sample data:
Dax for new column:
New Status = CALCULATE(MAX('Table'[Account]),
FILTER(ALL('Table'),
'Table'[Account]=EARLIER('Table'[Account])&&'Table'[Status]="Active"))
Fianl output result:
If you want to dynamically filter,I suggest you use measure and visual:
New Status1 = CALCULATE(MAX('Table'[Account]),FILTER(ALL('Table'),'Table'[Account]=MAX('Table'[Account])&&'Table'[Status]="Active"))
Final output:
Did I answer your question? If so ,pls mark my post as a solution,if not ,could you pls share your sample data and expected output result.Remember to remove confidential data.
Best Regards
Lucien
col = Calculate(account name ,tablename[satus]="Active")
Did I answer your question? If so, please mark my post as a solution!
Proud to be a Super User!
User | Count |
---|---|
76 | |
75 | |
46 | |
31 | |
27 |
User | Count |
---|---|
99 | |
91 | |
51 | |
49 | |
46 |