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
Hi,
I've got a table with bunch of codes.
Now I need a measure to count those codes but only the one that have a specific condition which is assigned to each code in a lookup table.
My data table looks like that.
Code |
A1 |
B1 |
C1 |
A1 |
B1 |
C1 |
A1 |
B1 |
C1 |
A1 |
A1 |
D1 |
C1 |
C1 |
A1 |
D1 |
My lookup table like this
Code | Condition |
A1 | New |
B1 | New |
C1 | Old |
D1 | Old |
And for example I want to count only the one that have 'New' as Condition in the loopu table
so the results hsoulkd be:
A1 - 6
B1 - 3
Could nayone support please
create a relationship between lookup table and the main table (on code).
Drag Code field from the lookup on to a table visual, drag code from the main table on to the same visual. Make the second one a Count aggregation.
Put Condition from the lookup table in a slicer
Hi @HotChilli ,
I know how to present those values in a table or matrix.
I require a measure for further calculations
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 August 2024 Power BI update to learn about new features.
User | Count |
---|---|
122 | |
89 | |
75 | |
55 | |
45 |
User | Count |
---|---|
135 | |
121 | |
77 | |
65 | |
64 |