Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Date | Country | Forecast |
17/04/2023 | France | 2830 |
18/04/2023 | France | 2758 |
19/04/2023 | France | 2938 |
20/04/2023 | France | 3033 |
21/04/2023 | France | 2905 |
22/04/2023 | France | 2760 |
23/04/2023 | France | 2486 |
17/04/2023 | Netherlands | 418 |
18/04/2023 | Netherlands | 489 |
19/04/2023 | Netherlands | 500 |
20/04/2023 | Netherlands | 569 |
21/04/2023 | Netherlands | 586 |
22/04/2023 | Netherlands | 580 |
23/04/2023 | Netherlands | 573 |
17/04/2023 | Denmark | 28 |
18/04/2023 | Denmark | 47 |
19/04/2023 | Denmark | 34 |
20/04/2023 | Denmark | 35 |
21/04/2023 | Denmark | 36 |
22/04/2023 | Denmark | 34 |
23/04/2023 | Denmark | 27 |
17/04/2023 | Sweden | 128 |
18/04/2023 | Sweden | 164 |
19/04/2023 | Sweden | 199 |
20/04/2023 | Sweden | 187 |
21/04/2023 | Sweden | 169 |
22/04/2023 | Sweden | 170 |
23/04/2023 | Sweden | 164 |
17/04/2023 | Germany | 1064 |
18/04/2023 | Germany | 1258 |
19/04/2023 | Germany | 1310 |
20/04/2023 | Germany | 1330 |
21/04/2023 | Germany | 1266 |
22/04/2023 | Germany | 1217 |
23/04/2023 | Germany | 1092 |
17/04/2023 | Spain | 33 |
18/04/2023 | Spain | 37 |
19/04/2023 | Spain | 52 |
20/04/2023 | Spain | 50 |
21/04/2023 | Spain | 38 |
22/04/2023 | Spain | 45 |
23/04/2023 | Spain | 35 |
17/04/2023 | Italy | 48 |
18/04/2023 | Italy | 53 |
19/04/2023 | Italy | 61 |
20/04/2023 | Italy | 67 |
21/04/2023 | Italy | 67 |
22/04/2023 | Italy | 68 |
23/04/2023 | Italy | 59 |
17/04/2023 | Other | 296 |
18/04/2023 | Other | 365 |
19/04/2023 | Other | 388 |
20/04/2023 | Other | 395 |
21/04/2023 | Other | 369 |
22/04/2023 | Other | 364 |
23/04/2023 | Other | 297 |
Hi
How do I write a Meausre that will Calculate the Total Forecast by Each Country?
I am Close but I can't get the filtering right. This is what I have so far.
Any help would be appreciated.
Solved! Go to Solution.
Hi @Enrico501 ,
By default, if you put Country and Forecast columns in one visual and select Sum of Forecast, it will automatically sum the values based on each country, this is called "context" in Power BI.
If you prefer a measure, here's the solution:
Measure =
SUMX (
FILTER ( ALL ( 'Table' ), 'Table'[Country] = MAX ( 'Table'[Country] ) ),
'Table'[Forecast]
)
I attach my sample below for your reference.
Best regards,
Community Support Team_yanjiang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Enrico501 ,
By default, if you put Country and Forecast columns in one visual and select Sum of Forecast, it will automatically sum the values based on each country, this is called "context" in Power BI.
If you prefer a measure, here's the solution:
Measure =
SUMX (
FILTER ( ALL ( 'Table' ), 'Table'[Country] = MAX ( 'Table'[Country] ) ),
'Table'[Forecast]
)
I attach my sample below for your reference.
Best regards,
Community Support Team_yanjiang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Total Forecast = SUM('Boohoo Forecast'[Forecast])
or
Total Forecast = CALCULATE(SUM('Boohoo Forecast'[Forecast]))
That totals the Forecast in total. It does not split it out in country. I need it to Calculate the totals but Country
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
84 | |
76 | |
73 | |
42 | |
36 |
User | Count |
---|---|
109 | |
56 | |
52 | |
48 | |
43 |