Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi everyone,
This seems quite easy but I'm struggling so here it goes.
This is my table, showing the status of certain Job in a certain date. In terms of dates I have the last day for previous months and the MAX date for current month (current month equals the month we are living on right now):
So, what I want is an evolution of the number of jobs for each [StatusDescription] for the last 12 months .
Visually it seems like this:
I'm doing this in PowerBI but for some reason I'm not getting any result.
Note: I want the last 12 months from Today's date.
Solved! Go to Solution.
Hi, @Anonymous
Try to create a measure like this:
_Allselected_filter_first12 =
VAR _table =
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[StatusDescription] = MAX ( 'Table'[StatusDescription] )
&& EOMONTH ( 'Table'[Date], 0 ) <= EOMONTH ( TODAY (), 0 )
&& EOMONTH ( 'Table'[Date], 0 ) > EOMONTH ( TODAY (), -12 )
)
VAR _count12 =
IF ( COUNTROWS ( _table ) = 12, CALCULATE ( COUNT ( 'Table'[word] ), _table ) )
RETURN
IF ( HASONEVALUE ( 'Table'[Date] ), _count12, COUNT ( 'Table'[word] ) )
Or, please share your sample pbix file's link here, then I can try to look into it to come up with a more accurate measure.
Hope this helps.
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
Try to create a measure like this:
_Allselected_filter_first12 =
VAR _table =
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[StatusDescription] = MAX ( 'Table'[StatusDescription] )
&& EOMONTH ( 'Table'[Date], 0 ) <= EOMONTH ( TODAY (), 0 )
&& EOMONTH ( 'Table'[Date], 0 ) > EOMONTH ( TODAY (), -12 )
)
VAR _count12 =
IF ( COUNTROWS ( _table ) = 12, CALCULATE ( COUNT ( 'Table'[word] ), _table ) )
RETURN
IF ( HASONEVALUE ( 'Table'[Date] ), _count12, COUNT ( 'Table'[word] ) )
Or, please share your sample pbix file's link here, then I can try to look into it to come up with a more accurate measure.
Hope this helps.
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous very hard to understand from the images what is going on. it will be easier if you put sample data in pbix file, share it using one drive/google drive with the expected output.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@parry2k
I can prepare a file to share later.
But basically I got a column that tells me the status of certain project (Open, Suspended, Closed, etc)
I just want to have a line chart that counts the number of projects in each status, for the Last 12 monthes.
User | Count |
---|---|
64 | |
59 | |
47 | |
33 | |
32 |
User | Count |
---|---|
84 | |
75 | |
56 | |
50 | |
44 |