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
Hello,
I have an issue with measure, which when added to visual (table or matrix) does not calculate properly. I need this measure to show percentage from total hours by driver1 name multiplied by fixed_cost. Instead, this measure for percentage calculation simply takes total row hours and divide from same total row hours (instead of dividing from total hours grouped by driver1 name).
Thanks, @amitchandak, but this is not what I'm looking for. Adding more details:
Let's say in my slicer, week 7 is selected which is from 02/11/2024 to 02/17/2024. So for fixed costs calculation, I need to take fixed costs value from Contribution Rates table for February. Now, since only week 7 is selected, I want to calculate based on the following logic:
Contribution Rates table snip:
RE ES Query table snip:
@RobertasUC , You can create a calculated column in RE ES Query,if Month and year is a key, or add more columns as per need
new column
Total = 'RE ES Query'[Hours] * Maxx(FIlter('Contribution Rates', 'Contribution Rates'[Month] = 'RE ES Query'[Month] && 'Contribution Rates'[year] = 'RE ES Query'[Year] ), 'Contribution Rates'[fixed_cost])
or with division
Total = 'RE ES Query'[Hours] * Maxx(FIlter('Contribution Rates', 'Contribution Rates'[Month] = 'RE ES Query'[Month] && 'Contribution Rates'[year] = 'RE ES Query'[Year] && 'Contribution Rates'[Division] = 'RE ES Query'[Division] ), 'Contribution Rates'[fixed_cost])
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 39 | |
| 37 | |
| 29 | |
| 24 |
| User | Count |
|---|---|
| 120 | |
| 95 | |
| 70 | |
| 69 | |
| 65 |