Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Hi,
First, English is not my mother tounge, so I hope I make myself understood :).
I'm quite new att Power BI and I'm struggeling with a calculated column and the outcoming result in my report.
So, my company want's to follow up on how "old" a member is when they pay there membership fee (number of years as a member), and I have one column that calculates that:
Why we have both "Missing" and "(Blank)" is because an invoice may refer to either a membership fee or other sales.
Second, I'm grouping these values with SWITCH in an other column:
but in my report, all the items with value "-1", that should be grouped as "Missing", is converted to "50+" Why is that?
I've tried to add && <> -1 on the last row, but that doesn't work either. How is it possible that the datamodel and the report shows different values? Any one who has an idea or solution?
Thanks in advance!
Solved! Go to Solution.
Hi @selimovd,
After some more digging I found that empty cells in date column in my Customer table returned 30/12/1899, so when I calculated MemberYear the result became 120 years.
Instead of IF(ISBLANK(vContractMemberFrom),-1,... I tried IF(vContractMemberFrom = 0,-1,... and now it seems to work fine.
Hi @SaraFtg ,
After reviewing your question, it seems that it has been resolved. You can mark the correct response as the standard answer to help the other members find it more quickly.
If there is still confusion, you can describe your problem in detail and provide relevant data and information. I will answer you as soon as possible.
Best Regards,
Henry
Hey @SaraFtg ,
can you check if Document No 765663 has multiple rows in your data?
If you chose MAX as aggregation for MemberYears (group) it could be that it would show the MAX of the rows and if that Document No has multiple rows that would explain it.
Also try to set the aggregation in the visual to "Don't summarize":
Like this all rows should be shown for sure.
Hm, when adding the MembertYear-column (also set to Don't summarize) to my visual the problem seems to be that -1 is set to 120 (resulting in that it's grouped as "50+"). So - question is why that is happening?
Hey @SaraFtg ,
can you share the file? It would be a lot easier to take a look at the file itself.
Best regards
Denis
Hi @selimovd,
After some more digging I found that empty cells in date column in my Customer table returned 30/12/1899, so when I calculated MemberYear the result became 120 years.
Instead of IF(ISBLANK(vContractMemberFrom),-1,... I tried IF(vContractMemberFrom = 0,-1,... and now it seems to work fine.
Hi @selimovd,
Thanks for you reply!
Document No appears in three different tables, and on several rows in two of them, but not in the table where this calculation is made.
The aggregation is set to Don't summarize, these are the options I have
Best regards,
Sara
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 20 | |
| 18 | |
| 13 |
| User | Count |
|---|---|
| 69 | |
| 57 | |
| 42 | |
| 42 | |
| 30 |