Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi
I have the below table.
Customer, DateSold, first-purchasedate-by-customer (calculated column based on DateSold)
I have associated DateSold and first-purchasedate-by-customer to DateDim table for getting YearMonth (yyyymm).
I am looking for a good way to create visualization of stacked bar / side-by-side bar:
yyyymm, distinct-count(Customer per yyyymm of DateSold), distinct-count(Customer per yyyymm of first-purchasedate-by-customer)
Any suggestions?
I am able to create a bar graph with yyyymm and either one column but not the stacked bar.
PS: new to DAX & PowerBI
Solved! Go to Solution.
Update:
I was able to achieve it by creating a new table with a copy of data from parent table (first-purchasedate-by-customer,Customer) and associating this table first-purchasedate-by-customer to DateDim table & created visualization.
Update:
I was able to achieve it by creating a new table with a copy of data from parent table (first-purchasedate-by-customer,Customer) and associating this table first-purchasedate-by-customer to DateDim table & created visualization.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 65 | |
| 46 | |
| 44 | |
| 28 | |
| 19 |
| User | Count |
|---|---|
| 199 | |
| 125 | |
| 102 | |
| 69 | |
| 53 |