The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
I am currently facing an issue where my values don't add up as expected. I have a table with different ratio's per country, called Verhoudingsgetallen. Let's say:
Country | SolarVerhouding |
US | 0,00194 |
NZ | 0,02944 |
DE | 0,03948 |
NL | 0,04854 |
The measure I use is as following:
Solved! Go to Solution.
Try
DemandSolars =
SUMX (
VALUES ( 'Table'[Country] ),
VAR SolarVerhouding_ =
CALCULATE(MAX ( Verhoudingsgetallen[SolarVerhouding] ))
VAR SensorForecast_ =
CALCULATE(SUM ( 'Salesforce budgetForecasts'[Forecast__c] ))
RETURN
SolarVerhouding_ * SensorForecast_
)
Try
DemandSolars =
SUMX (
VALUES ( 'Table'[Country] ),
VAR SolarVerhouding_ =
CALCULATE(MAX ( Verhoudingsgetallen[SolarVerhouding] ))
VAR SensorForecast_ =
CALCULATE(SUM ( 'Salesforce budgetForecasts'[Forecast__c] ))
RETURN
SolarVerhouding_ * SensorForecast_
)
Hi John,
Thanks for your quick reply. I've tried this, but now I get a really big number as my total. So I don't think this is the solution.
I've updated my original post to force context transition, should be OK now I think
Thanks a lot. It works!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
18 | |
18 | |
17 | |
15 | |
13 |
User | Count |
---|---|
36 | |
35 | |
19 | |
18 | |
18 |