Forum Discussion
Power BI Current Month Count
- 9 years ago
Thanks for your reply Harris.
As you mentioned, I have tried to create a custom coloum using Power BI Query Editor.
But I am getting the below error.
Let me know what is the issue here.
- 9 years ago
Hi
You created a column in query mode. For this solution, You need to create a calculated column in your table
After loading your query in data model, select the table and right click.
Select new column and write this DAX Expression for it to work.
Thanks & Regards,
Bhavesh
- 9 years ago
MaadiKemko it is a DAX expression which works as BhaveshPatel mentioned. You are trying to use DAX in M Query editor.
Thanks for your reply Harris.
As you mentioned, I have tried to create a custom coloum using Power BI Query Editor.
But I am getting the below error.
Let me know what is the issue here.
MaadiKemko it is a DAX expression which works as BhaveshPatel mentioned. You are trying to use DAX in M Query editor.
- MaadiKemko9 years agoFrequent Visitor
I have done changes as you mentioned.
There is one currection in the formula. If we use the above mentioned formula, will get month but that will not check the year.
So I modified the formula as below and now the result is showing as expected.
Thanks a lot HarrisMalik and BhaveshPatel