Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello together,
I have a "Table" which is linked to the "Calendar".
The "Table" contains the years 2020 - 2023.
What I want to do is to calculate the Revenue for 2020 in a Measure. This works with the following code:
Revenue 2020 =
CALCULATE(SUM('Table'[Revenue]), ALLEXCEPT('0_Calendar','0_Calendar'[Year]),'0_Calendar'[Year]=2020, 'Table'[Criteria]=0)
BUT: The calculated value for 2020 is now in every date row from 2020 - 2023. I only want to show the calculated 2020-value for dates in 2020, that means from 01.01.2020 - 31.12.2020.
Should look like this:
Date | Calculated value |
01.01.2020 | 10 |
02.01.2020 | 10 |
... | 10 |
31.12.2020 | 10 |
01.01.2021 | |
05.01.2021 | |
31.12.2021 | |
... |
How can I fix the problem?
Thank you in advance
BR
Tobias
Solved! Go to Solution.
maybe you can try this
Proud to be a Super User!
maybe you can try this
Proud to be a Super User!
Awesome, thank you very much 🙂
you are welcome
Proud to be a Super User!
Try create these 3 measures
Revenue = SUM('Table'[Revenue])
Revenue 2020 =
CALCULATE(
[Revenue]
Calendar'[Year]=2020)
Revenue 2021 =
CALCULATE(
[Revenue]
Calendar'[Year]=2021)
Then create add atbake visual to your report canvas with
Calendar'[Year], Revenue, Revenue 2020, Revenue 2021
Note what happens.
Revuew shows the revenuw for each year but Revenue 2020 and Revenue 2021 override the filter context
Please do all these free training models about Power Bi calendar tables
We want to help you but your description is too vaugue. Please write it again clearly.
Please DON'T copy & paste your DAX that does not work and expect us to fathom what you want to do. That is crazy. 😀
Please just give a simple non technical functional decscription of what you want, then let us suggest the DAX. Thank you.
Provide example input data as table text (not a screen print) so we can import the data to build a solution for you.
Also provide the example desired output, with a clear description of the process flow.
Remember not to share private data ... we don't want you to get into trouble. 😧
Take care to use the same table and field names in the input, output and description so we can understand your problem and help you.
You will get a quick response if you put time and effort into writing clear problem descriptions.
Vaugue descriptions can waste your time and ourtime.
Look foward to helping you when the above information is forthcoming
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
96 | |
95 | |
82 | |
71 | |
64 |
User | Count |
---|---|
115 | |
105 | |
95 | |
79 | |
72 |