In Power BI, I have table with following data, columns "Company", "Document", "Link", "Price", "Document Category"
Example:
I need to add new column (for example Company Category), where will be most accured value of "Document Category" depend on "Company" and with rule, that "Link" column value is not empty.
So the new table would look like this:
Company A, most common value of "Document Category" (where link is not empty) is "Car"
Company B has "Airplane"
Company C has "Other"
It's possible to add new column for this case in Power BI via DAX?