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 September 15. Request your voucher.
Hi all
I have this table:
Today (01/11/2024) i want return 2022/2023.
After 10/01/2024 i want return 2023/2024.
Anyone can help me?
Thanks you all
Solved! Go to Solution.
Hi @miguelp06 ,
You can try to use the CALCULATE and VALUES functions for the same purpose. Refer to below dax:
AnoAtual =
CALCULATE (
VALUES ( dAnoLetivo[Ano Letivo] ),
dAnoLetivo[Ano]
= YEAR ( TODAY () ) - 2
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @miguelp06 ,
You can try to use the CALCULATE and VALUES functions for the same purpose. Refer to below dax:
AnoAtual =
CALCULATE (
VALUES ( dAnoLetivo[Ano Letivo] ),
dAnoLetivo[Ano]
= YEAR ( TODAY () ) - 2
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
I found a solution.
First create a YEAR column based on the Data column.
Then I used the following function:
User | Count |
---|---|
14 | |
11 | |
6 | |
6 | |
5 |
User | Count |
---|---|
28 | |
17 | |
11 | |
7 | |
5 |