Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Good morning community,
I have issues creating a new calculated column and couldn’t find a matching topic in the forum. Therefore I created a new one.
I would like to create a new column which identifies the last scantime for each month and value in my table. My source table looks something like this:
The table filtered with the new column should look like this:
It is kinda tricky for me, because some values are duplicates, nevertheless they are still neccessary for me. There are also some months with no values at all.
I hope you can help me with my issue.
Thank you in advance and kinda regards
Solved! Go to Solution.
@Hennemann
Add this as a column
Lastest =
IF (
COUNTROWS (
FILTER (
GROUPBY (
ADDCOLUMNS ( SCANS, "Month", EOMONTH ( SCANS[Lat Scantime], 0 ) ),
SCANS[Job],
[Month],
"Date", MAXX ( CURRENTGROUP (), SCANS[Lat Scantime] )
),
SCANS[Job] = [Job]
&& [Date] = [Lat Scantime]
)
) > 0,
[Lat Scantime],
BLANK ()
)
________________________
Did I answer your question? Mark this post as a solution, this will help others!.
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Hennemann
Add this as a column
Lastest =
IF (
COUNTROWS (
FILTER (
GROUPBY (
ADDCOLUMNS ( SCANS, "Month", EOMONTH ( SCANS[Lat Scantime], 0 ) ),
SCANS[Job],
[Month],
"Date", MAXX ( CURRENTGROUP (), SCANS[Lat Scantime] )
),
SCANS[Job] = [Job]
&& [Date] = [Lat Scantime]
)
) > 0,
[Lat Scantime],
BLANK ()
)
________________________
Did I answer your question? Mark this post as a solution, this will help others!.
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Hi @Hennemann ,
You can use the following Column
Hello @harshnathani,
thank you for your feedback. Unfortunately this is not the solution for my problem.
I need the maxdate for each month and each jobname in combination.
Your suggested column will only show the max date for each jobname.
Kind regards
Hi @Hennemann ,
One way you can do is create 2 columns in your Table.
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
10 | |
6 |