Forum Discussion
Creating a measure with IF statement
- 6 years ago
Add a new column like
Is Active = var cnt =countx(filter(table,table[company]=earlier(table[company]) && (table[company]="Active" Or ealier(table[company]="Active"))),table[company]) return if(cnt>0,"Yes","No")Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Proud to be a Datanaut Connect on Linkedin
rjsidek Well in the proper data model you would have a Company table with distinct company names and that table would be related to the Company History table (the one you have now). Then it would be simple to create a new column in the Company table using COUNTROWS(FILTER...
- rjsidek6 years agoHelper II
Can you elaborate a bit on how I would be able to achieve this?