The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello everybody, I have a table in Power BI and I have created the following visualization. As you can see there 6893 articles, some of them are only C (Costruction), some of them are only I (Industry) and some are C+I (mixt). I would like to create a column saying only C, only I or Mixt. How can I do it? directly in the table or in the visualization. Thank you for your help
Solved! Go to Solution.
Hi @Anonymous ,
Based on your description, you can create a calculated table as follows.
My test table:
Table =
var x1=SUMMARIZE('Sheet4',Sheet4[cod_art],"count",DISTINCTCOUNT('Sheet4'[Column]))
return
ADDCOLUMNS(x1,"category",IF([count]=2,"Mixt","Only"&" "&LOOKUPVALUE('Sheet4'[Column],Sheet4[cod_art],[cod_art])))
Result:
Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Based on your description, you can create a calculated table as follows.
My test table:
Table =
var x1=SUMMARIZE('Sheet4',Sheet4[cod_art],"count",DISTINCTCOUNT('Sheet4'[Column]))
return
ADDCOLUMNS(x1,"category",IF([count]=2,"Mixt","Only"&" "&LOOKUPVALUE('Sheet4'[Column],Sheet4[cod_art],[cod_art])))
Result:
Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the July 2024 Power BI update to learn about new features.
User | Count |
---|---|
115 | |
112 | |
69 | |
48 | |
43 |
User | Count |
---|---|
188 | |
87 | |
77 | |
74 | |
60 |