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 am trying to arrange my central date table by month number in order to have the line graph display January through December but I keep getting a cardinality error.
I have a central date table with more than one year, therefore I believe that might be the problem.
Could you please advice?
Thanks
Solved! Go to Solution.
Hi @Anonymous ,
Please try below steps:
1.Create a month table, and add a index column , then sort the month column by index
Month_sort:
2.Create a relationship between your month table and fact table
Fact:
Mode:
3.Then add a line chart
Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Please try below steps:
1.Create a month table, and add a index column , then sort the month column by index
Month_sort:
2.Create a relationship between your month table and fact table
Fact:
Mode:
3.Then add a line chart
Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Can you show me your date table after adding the DateSortColumn?
So I have tried your DAX two different ways as I couldn't close brackets. I get the same error for both.
whats the second one? the first is correct and should work, i use the exact same setting in my date table... so it's weird
I tried the correct one and it is still giving the same error 😞
I have multiple years, could this be the issue?
no, that's the default case ... can you send the pbx file?
Add a DateSortColumn to your Calendar table, like
DateSortColumn := 100 * YEAR(Calendar[Date]) + MONTH(Calendar[Date])
and apply this to your Month-Column as "Sort by".
Thanks for the reply. I am getting this error when I try to sort?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
146 | |
75 | |
64 | |
52 | |
47 |
User | Count |
---|---|
218 | |
88 | |
73 | |
64 | |
60 |