Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 32 | |
| 31 | |
| 27 |