Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Cheers,
I currently have some problems visualising my data. I have multiple IDs with a full row with different attributes.
| ID | Attribute 1 | Attribute 2 | Attribute 3 | Attribute 4 |
| 1 | 0 | 2 | 0 | 1 |
| 2 | 1 | 1 | 0 | 0 |
| 3 | 2 | 0 | 1 | 0 |
| 4 | 1 | 0 | 2 | 1 |
| 5 | 0 | 2 | 0 | 0 |
| 6 | 2 | 2 | 0 | 0 |
I want to create a new table where the amount of a specific number (example: 2) of every attribute is summarised.
| Attributes | Summary |
| Attribute 1 | 2 |
| Attribute 2 | 3 |
| Attribute 3 | 1 |
| Attribute 4 | 0 |
I tried to solve the problem with this measure, but i did not find a proper way to display the data in a diagramm:
Hello, Steels
You can try this
Attr1_count = calculate(COUNTROWS(FILTER(ALL('Table');Table[Attribute 1]=VALUES(Table[Attribute 1]))))
Attr2_count = calculate(COUNTROWS(FILTER(ALL('Table');Table[Attribute 2]=VALUES(Table[Attribute 2]))))
Attr3_count = calculate(COUNTROWS(FILTER(ALL('Table');Table[Attribute 3]=VALUES(Table[Attribute 3]))))
Attr4_count = calculate(COUNTROWS(FILTER(ALL('Table');Table[Attribute 4]=VALUES(Table[Attribute 4]))))So, finaly in columns "Attr1_count" you will see count of each particular value of Attribute1 in the table, for Attribute 2 - the same:
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 55 | |
| 40 | |
| 35 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 71 | |
| 70 | |
| 38 | |
| 35 | |
| 23 |