Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi, I have following Measures:
E Count =
VAR CountD =
CALCULATE (
COUNTROWS (
FILTER (
SUMMARIZE (
FILTER ('Losses', 'Losses'[Status] = "closed")
, 'Losses'[CK], "ExpenseSum", SUM ('Losses'[Expense])
),
[ExpenseSum] <> 0
)
),
USERELATIONSHIP ('Calendar'[Date], 'Losses'[ECD])
)
RETURN
CountD
Year | E Count | E Count LY |
2019 | 604 | |
2020 | 716 | 604 |
2021 | 783 | 716 |
2022 | 845 | 1182 |
Hi, @FPP ;
So your problem has been solved?
If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.
If not, could you share a simple after removing the sensition information?
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I now have a file. How do I upload it?
@FPP , Make sure Calendar table is marked as date Table and Year is coming from Calendar.
also try
E Count LY =
CALCULATE (
[E Count],
dateadd('Calendar'[Date], -1, year)
)
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5b...
I am trying to build a pbix with fake data. I am having trouble replicating the issue. I will keep working on it.
My Calendar table is marked as a date table. I tried your DAX, there were no changes.
@FPP ,
Can you share a sample pbix after removing sensitive data.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
133 | |
76 | |
53 | |
38 | |
37 |
User | Count |
---|---|
202 | |
80 | |
71 | |
55 | |
48 |