Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello Team,
Need some help, I've been trying to sort this out using different combinations of DAX Formulas and I'm still missing a couple of what should be simple measures but for some reason it has been a nightmare on the way is interacting with the rest of the things.
Long story short (trying to simplify the Business Case)
1. Have 2 Tables (Table 1 with Sales Details and Table 2 with Hierarchy Account List)
1.1. We may have Accounts from Table 2 (universe of accounts) that have no Sales in Table 1
2. You can have in the raw data (Table 1) something like this (obviously with a ton of more details):
3. There is a second table with Account "Universe"
4. We should be able to get the following measures (some examples):
Need your help to try to get the last 2 measures:
A. Accounts with Product A ONLY and
B. % Accounts with Product A Only vs Table 2 (Account Universe)
Note: Measures should interact based on selected filtered criteria and be able to visualize in Matrix or Charts
I know is very simple, but there is something that I'm missing reason why I would like to start from scratch with your inputs. Any help is more than welcome!
Thanks,
Mario
Solved! Go to Solution.
May be you can add another FILTER expression inside CALCULATE
Accounts with Product A only = CALCULATE ( DISTINCTCOUNT ( Table1[Account] ), FILTER ( ALLSELECTED ( Table1[Account] ), CALCULATE ( DISTINCTCOUNT ( Table1[Product] ) = 1 ) ), Table1[Product] = "A" )
May be you can add another FILTER expression inside CALCULATE
Accounts with Product A only = CALCULATE ( DISTINCTCOUNT ( Table1[Account] ), FILTER ( ALLSELECTED ( Table1[Account] ), CALCULATE ( DISTINCTCOUNT ( Table1[Product] ) = 1 ) ), Table1[Product] = "A" )
Thanks Zubair! Seems is working fine, I'll finalize the Dashboard to see how the measure interacts with the rest of calculations.
Very much appreciated!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |