The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I need to create a project portfolio, which need to count the amount of project that due next month and due this month.
Also another measure of project amount started next month.
How should I do that?
I have calendar table.
And the data table shown below
Row number | Start | End | Project Name |
1 | 4/12/2022 | 5/6/2023 | xxx |
2 | 5/10/2022 | 11/11/2022 | yyy |
3 | 8/9/2022 | 12/12/2022 | zzz |
Thanks for your help
Solved! Go to Solution.
You can put the Date[End] column into the slicer and replace all the ALL to VALUES in the code, like this:
p.s. ALL ignores all filter context (e.g. from slicer selection), while VALUES takes filter context into evaluation.
Hi @FreemanZ,
I'm using the measure below, but it stll not function. Do you know where I can change?
Hi @FreemanZ,
Is this code able to use with the date filter?
Because I try to input those measure, it show blank eventhough there should be count by 1.
I use date slicer select the month November 2022, it suppose show me 1 end next month, 1 start next month and 1 end this month. but at the end it shown blank for me.
Thanks for your help.
You can put the Date[End] column into the slicer and replace all the ALL to VALUES in the code, like this:
p.s. ALL ignores all filter context (e.g. from slicer selection), while VALUES takes filter context into evaluation.
Hi @FreemanZ ,
The new measure is work but just referring to current November 2022. I wondering if I can pick the month like December 2022 or others.
I wondering is it be okay to use the own calendar table? By clicking June 2023, it should show 1 in the result.
Thanks for your help.
Yes, you can. But you need to build the relationship with the referred column, the End column or Start column. As you have two date columns, that would be a bit tricky and you may find USERELATIONSHIP function useful. Enjoy.
Hi @FreemanZ,
I'm using the measure below, but it stll not function. Do you know where I can change?
Hi @FreemanZ,
How should I use USERELATIONSHIP this function? I have buile the relationship in the model.
Thanks for your help.
Hi @FreemanZ ,
After applying the measure, only the duethis month is functioning, hwever other two not working.
Do you know why it will happen?
Thanks for your help.
The code is checked and should be OK now:
User | Count |
---|---|
13 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
24 | |
14 | |
13 | |
8 | |
8 |