Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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:
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
44 | |
25 | |
19 | |
16 | |
8 |
User | Count |
---|---|
58 | |
50 | |
44 | |
21 | |
19 |