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
I have to create a report where we have to show which flags are linked to which accounts. I have a slicer with the 12 flags (1-12) and it filters down to the main table showing account info. It contains the main 'Bill-to account' and under the main bill to accounts are the varous ship-to accounts. An example of what i am dealing with:
Bill to Account Ship To Account
1 A
1 B
1 C
Once i select the multiple flags the table will filter showing only those accounts will the certain flags. I just need a measure to help me show the DISTINCT COUNT of the bill-to accounts with the selected flags. In the example above the measure should show '1'.
I have a measure but i dont think it's going in the right direction since i got a number in the billions
Can you give a slightly more complex example please (with more data) please? There's no Flag Type in the supplied data.
Also, the measure has been written to return a string rather than an integer, so what is it you actually want (I would think that DISTINCTCOUNT plays a part)
I simplified the Flag type by representing them as numbers (1-12)
At any point the user will select multiple flags and the main table with the account info will filter as such.
The table contains the main bill-to account in 1 column and then the next column will show the various ship-to accounts associated with the main bill-to account. example below
Bill To Acct | Ship To acct |
100 | 103 |
100 | 101 |
100 | 102 |
200 | 201 |
200 | 202 |
Distinct Count = 2
I just need a measure to show the distinct count of bill to account(s) in the column.
The measure i created shows any account associated with the selected flags, so it'll show large figures. I need it to show the accounts associated with at least these selected flags.
So if 3 flags are chosen we want it to show the accounts that have AT LEAST those 3 flags but are not limited to. If one of those accounts shown have a 4th flag, it should still show. Obviously we can narrow it down by selecting said 4th flag.
Hi @AA622 ,
So basically you want filter the table according to selected flags and distinct count the bill to account? But what's the relationship between the flags and the table you shown above? Do you have flag column in the table above?
Best Regards,
Jay
Yes that is correct
I have a flag measure on the visual with the account information. I set it to "shows items when the value is _1_ "
the measure:
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 |
---|---|
134 | |
120 | |
76 | |
65 | |
64 |