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.
Hi Community
I have the following model in desktop
Here is an example of the facts table.
My Stock dimension table connects to the fact table using the UPRN field. The Stock dimension table has a field called 'Tenants affected' here is an example
Ony my report page I would like to display in a card visual the number of 'tenants affected' however due to the fact table containing mutiple 'UPRN's the DAX function I am try to write SUMS all 'Tenants' for each of the mutiple UPRNs
As shown in the example below my DAX is outputting 11
UPRN | Tenants Affected |
18 | 1 |
18 | 1 |
26 | 3 |
26 | 3 |
26 | 3 |
Where as I need it to output 4
UPRN | Tenants Affected |
18 | 1 |
26 | 3 |
Thank you
Solved! Go to Solution.
Hi @cottrera ,
Thanks for your feedback. If you still want to get it, you can create antoher new measure as below and replace the original measure [Members Affected] on the visual.
Measure = SUMX ( VALUES ( 'DIM_Stock'[UPRN] ), [Members Affected] )
Best Regards
Hi v-yiruan-msft & sjoerdvn by company has now decided they no longer need the insight that I was working on . Therefore the measure I required is no required. Thank you for your help
Hi @cottrera ,
Thanks for your feedback. If you still want to get it, you can create antoher new measure as below and replace the original measure [Members Affected] on the visual.
Measure = SUMX ( VALUES ( 'DIM_Stock'[UPRN] ), [Members Affected] )
Best Regards
I think you want to use a measure like this (note that you'll have to adapt to the proper table and column names, as these are not entirely clear from your information):
# tenants affected =CALCULATE(SUM(Stock[Members Affected]), CROSSFILTER(Stock[UPRN],RepairsFact[UPRN], Both))
Hi thank you for responding so quickly.
Members and Tenants affected are the same (appologies) The members figures is a measure that points at DIM_Stock table
thank you
Hi @cottrera ,
Thanks for reaching out to us about your problem. Base on my research, it seems that you want to get the count of 'tenant effected' and display it on the card visual. In order to make further troubleshooting and give you a solution shortly, could you please provide the following info? It would be very helpful to find the solution. Thank you.
UPRN | Tenants Affected |
18 | 1 |
18 | 1 |
26 | 3 |
26 | 3 |
26 | 3 |
Best Regards
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
25 | |
10 | |
7 | |
6 | |
6 |
User | Count |
---|---|
30 | |
11 | |
11 | |
10 | |
6 |