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.
I want to create a new table from my table with customerId and startdates which returns one row per customer with the minimum dat per customer. I've tried to use SELECTCOLMUNS and FILTER and I get a table with single customerId's but the minimum date is not calculated per customer but from the total. How can I get the minimum date per customer?
Solved! Go to Solution.
Hey Ingrid,
You can try the following:
MinFvoorzieningTbvEerste=
SUMMARIZE (
'FvoorzieningTbvEerste',
'FvoorzieningTbvEerste'[NrClient],
"ingang", MIN ( 'FvoorzieningTbvEerste'[Ingang] )
)
Kind regards
Hey Ingrid,
You can try the following:
MinFvoorzieningTbvEerste=
SUMMARIZE (
'FvoorzieningTbvEerste',
'FvoorzieningTbvEerste'[NrClient],
"ingang", MIN ( 'FvoorzieningTbvEerste'[Ingang] )
)
Kind regards
Hi @Anonymous
You could do something like:
New Table =
ADDCOLUMNS (
DISTINCT ( Table1[NrClient] ),
"DatumIngang", CALCULATE ( MIN ( Table1[Ingang] ) )
)
You might have to filter the first argument of the ADDCOLUMNS. If you explain what the filter exactly does in your code (I don't see it completely), we can get to a more accurate answer
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
I would make this table in the query editor with a Group By step. Or you should use ADDCOLUMNS(SUMMARIZE(... instead of SELECTCOLUMNS which doesn't do any aggregation.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
User | Count |
---|---|
76 | |
75 | |
46 | |
31 | |
27 |
User | Count |
---|---|
99 | |
89 | |
52 | |
48 | |
46 |