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.
Hi all
I need a calculated column that sums the distinct count values in the 'Pack' column for the concat of the columns 'Location' and 'Manufacturing line'.
To give an example here is the following table:
Location XX and Line 1 has just one type of pack (NR), therefore the result should be 1 (column F)
Location XX and Line 2 has just two types of pack: NR and Ref, therefore the result should be 2 in column F.
How can i replicated this excel formulas into just one calculated column in Power BI?
Excel attached: Duplicate.xlsx
Thanks.
Solved! Go to Solution.
Hi,
This calculated column formula works
Column = CALCULATE(DISTINCTCOUNT(Data[Pack]),FILTER(Data,Data[Location]=EARLIER(Data[Location])&&Data[Manufacturing line]=EARLIER(Data[Manufacturing line])))
Hope this helps.
Hi,
This calculated column formula works
Column = CALCULATE(DISTINCTCOUNT(Data[Pack]),FILTER(Data,Data[Location]=EARLIER(Data[Location])&&Data[Manufacturing line]=EARLIER(Data[Manufacturing line])))
Hope this helps.
You are welcome. Thank you for your kind words.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
72 | |
38 | |
31 | |
27 |
User | Count |
---|---|
92 | |
50 | |
44 | |
40 | |
35 |