The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi All,
I have created a measure that allows me to see the total sales for all stores that have a rate that is not blank. This report will be focused on a region, so a slicer will decide which region will be showing. Now, I would like to divide the stores that are not blank's total sales by the total for the region. This will leave me with a percent of the of the sales that are reporting rates for each store that is reporting a rate.
Here's my first measure to get the total sales of stores that do not have a blank rate:
Store | Total Sales | Total Rate | Region |
A | 100 | .02 | 1 |
B | 150 | .04 | 1 |
C | 125 | .02 | 1 |
D | 50 | - | 1 |
E | 100 | - | 1 |
F | 200 | .07 | 2 |
G | 110 | .01 | 2 |
H | 60 | - | 2 |
I | 75 | .05 | 2 |
Just to be clear, you cannot use slicer selections in a calculated column. Calculated columns and calculated tables cannot be responsive to slicers since they are only computed once per data load.
I think I misspoke a bit in the last paragraph. I'm not looking for a calculated column, but rather using a table visual to display this data. I would want to add that measure as a field in my table visual.
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
20 | |
12 | |
10 | |
7 |