Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have the below table:
(Columns Revenue 1, 2,3 are just different groups… the revenue shall appear in only one of them… either 1,2 or 3… and then repeated in ‘Revenue’ column).
I want to create a stacked bar chart… (like below)
Where in the Y axis, I shall have custom bins (ie 0-100, 101-200 and 201-100000). And in the x axis a stacked with a count on distinct clients.
What I have so far is 3 measures (see below) to achieve the distinct count on the clients, but I am unable to produce the bins and display it in the y axis as above, how can I achieve it??
CALCULATE(DISTINCTCOUNT('Fact'[Key_Customer]), FILTER('Fact','Fact'[Revenue1]>0))
CALCULATE(DISTINCTCOUNT('Fact'[Key_Customer]), FILTER('Fact','Fact'[Revenue2]>0))
CALCULATE(DISTINCTCOUNT('Fact'[Key_Customer]), FILTER('Fact','Fact'[Revenue3]>0))
Hopefully your source data comes in a better format. Please provide sanitized sample data that fully covers your issue. Paste the data into a table in your post or use one of the file services.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
22 | |
10 | |
10 | |
9 | |
7 |