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.
Hi i am looking for some help to setup the below:
I have setup this very simple model with two tables. Customer_Master and Distribution_Data which shows distribution of products to customer outlets. Connected to each other via the customer_id field.
The number you see on the bar chart , first bar for example, shows that product JWRL 700 is at 1569 customers.
Now 1569 is not the whole customer universe. To find this you need to count the different customer_ids from the Customer_master table which includes all customers.
What I want to show is the % of the value shown in the bar chart (which the sum of a column (Distribution of element (0/1) from the Distribution_data table) versus the count of the total customers.
So basically the percentage of the sum of values from one column in one table against the count of a column from another table.
Aim is to see in a second bar on the same chart that 1569 is actually 90% of the total customers.
Solved! Go to Solution.
Try New measures
custoomer for product = calculate(count(Distribution_Data[customer_ID])
overall customers = calculate(count(Customer_Master[ID]),all(Distribution_Data))
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin
hi @Andreas_P
You could use "ALL" Function as amitchandak said to get it. here are two blog for you refer to:
https://radacad.com/now-you-see-me-use-cases-of-all-dax-function-in-power-bi
If you still have problem, please share a simple pbix file and your expected output.
Regards,
Lin
Try New measures
custoomer for product = calculate(count(Distribution_Data[customer_ID])
overall customers = calculate(count(Customer_Master[ID]),all(Distribution_Data))
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |