Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
In the matrix table:
The DAX function is written as follows, but it does not work correctly. Where should I make corrections?
Solved! Go to Solution.
Hi, @questionac
I've modeled some data to hopefully fit your situation. You can try the following formula.
Total Revenue Pre =
CALCULATE ( SUM ('MMSOpptunities'[Current Revenue] ),
FILTER ( ALLEXCEPT( MMSOpptunities,MMSOpptunities[fiscalquarter],MMSOpptunities[fiscalmonth]),
[fiscalyear] = MAX( 'MMSOpptunities'[fiscalyear] ) - 1
))
Is this the result you expected? If it did not solve your problem, please provide more data.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @questionac
I've modeled some data to hopefully fit your situation. You can try the following formula.
Total Revenue Pre =
CALCULATE ( SUM ('MMSOpptunities'[Current Revenue] ),
FILTER ( ALLEXCEPT( MMSOpptunities,MMSOpptunities[fiscalquarter],MMSOpptunities[fiscalmonth]),
[fiscalyear] = MAX( 'MMSOpptunities'[fiscalyear] ) - 1
))
Is this the result you expected? If it did not solve your problem, please provide more data.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You can try:
Total Revenue Pre =
CALCULATE(
SUM('MMSOpptunities'[Current Revenue]),
FILTER(
ALL('MMSOpptunities'),
'MMSOpptunities'[fiscalyear] = MAX('MMSOpptunities'[fiscalyear]) - 1 &&
'MMSOpptunities'[fiscalmonth] = MAX('MMSOpptunities'[fiscalmonth])
)
)
💌 If this helped, a Kudos 👍 or Solution mark ✅ would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn
Hello @questionac ,
Please us the below revised measure..
Total Revenue Pre =
CALCULATE(
SUM('MMSOpportunities'[Current Revenue]),
FILTER(
ALL('MMSOpportunities'),
'MMSOpportunities'[fiscalyear] = SELECTEDVALUE('MMSOpportunities'[fiscalyear]) - 1 &&
'MMSOpportunities'[fiscalmonth] = SELECTEDVALUE('MMSOpportunities'[fiscalmonth])))
Key Changes:
If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!
Thank You
Dharmendar S
data↓(example)
| Current Revenue | Close Date (Expected Signing or Date Won/Lost/WD) | Zanken.Tower | Zanken.Team | fiscal-date | fiscalyear | fiscalquarter | fiscalmonth | monthnumber |
| 184 | 2022年9月29日 | アプリ生産管理 | 生産管理_尾道 | 2022/1/29 0:00 | 2022 | Q2 | 01月 | 5 |
| 109 | 2022年9月29日 | アプリ生産管理 | 生産管理_尾道 | 2022/1/29 0:00 | 2022 | Q2 | 01月 | 5 |
| 142 | 2022年9月29日 | アプリ生産管理 | 生産管理_尾道 | 2022/1/29 0:00 | 2022 | Q2 | 01月 | 5 |
| 185 | 2022年9月29日 | アプリ生産管理 | 生産管理_尾道 | 2022/1/29 0:00 | 2022 | Q2 | 01月 | 5 |
| 157 | 2022年9月29日 | アプリ生産管理 | 生産管理_尾道 | 2022/1/29 0:00 | 2022 | Q2 | 01月 | 5 |
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |