The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Solved! Go to Solution.
Thank you for sharing
January = CALCULATE(
SUM('Table'[CCY EUR]),
FILTER(ALLEXCEPT('Table','Table'[Currency]),'Table'[Month] = 1))
@Maikg if i solved your uestion please consider accepting as solution adn leaving a kudos behind
in order to get only the month of jan for all columns , you need to remove all filters
in tables, a measur will use row context so in other words filter to the month name ,
so use calculate[rate],filter(all(table) , [month] = 1)) - [rate of month]
and you need to use all inside the filter
Variance vs Jan = VAR JanuaryRate = CALCULATE(MAX('Month End Spot Rates'[CCY EUR]),FILTER(ALL('Month End Spot Rates'),MONTH('Month End Spot Rates'[Date])=1)) return ABS('Month End Spot Rates'[CCY EUR]-JanuaryRate)
Items.Year | Date | Currency | Month | CCY EUR |
2023 | 01/01/2023 | AED | 1 | 0.25106 |
2023 | 01/01/2023 | AMD | 1 | 0.00233 |
2023 | 01/01/2023 | RUB | 1 | 0.01311 |
2023 | 01/01/2023 | ALL | 1 | 0.00858 |
2023 | 01/02/2023 | RUB | 2 | 0.01258 |
2023 | 01/02/2023 | ALL | 2 | 0.00869 |
2023 | 01/02/2023 | AED | 2 | 0.25688 |
2023 | 01/02/2023 | AMD | 2 | 0.00243 |
2023 | 01/03/2023 | RUB | 3 | 0.01187 |
2023 | 01/03/2023 | AMD | 3 | 0.00235 |
2023 | 01/03/2023 | ALL | 3 | 0.00882 |
2023 | 01/03/2023 | AED | 3 | 0.24970 |
2023 | 01/04/2023 | AMD | 4 | 0.00233 |
2023 | 01/04/2023 | ALL | 4 | 0.00901 |
2023 | 01/04/2023 | AED | 4 | 0.24710 |
2023 | 01/04/2023 | RUB | 4 | 0.01114 |
2023 | 01/05/2023 | AMD | 5 | 0.00243 |
2023 | 01/05/2023 | RUB | 5 | 0.01153 |
2023 | 01/05/2023 | AED | 5 | 0.25484 |
2023 | 01/05/2023 | ALL | 5 | 0.00909 |
2023 | 01/06/2023 | ALL | 6 | 0.00938 |
2023 | 01/06/2023 | AMD | 6 | 0.00238 |
2023 | 01/06/2023 | AED | 6 | 0.25061 |
2023 | 01/06/2023 | RUB | 6 | 0.01046 |
2023 | 01/07/2023 | AED | 7 | 0.24722 |
2023 | 01/07/2023 | ALL | 7 | 0.00945 |
2023 | 01/07/2023 | AMD | 7 | 0.00235 |
2023 | 01/07/2023 | RUB | 7 | 0.00984 |
Thank you for sharing
January = CALCULATE(
SUM('Table'[CCY EUR]),
FILTER(ALLEXCEPT('Table','Table'[Currency]),'Table'[Month] = 1))
@Maikg if i solved your uestion please consider accepting as solution adn leaving a kudos behind
Thanks, yes this resolved part of the issue, I was able to use another formula to calculate the variance between months and January
User | Count |
---|---|
10 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
20 | |
15 | |
14 | |
10 | |
7 |