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, I'm a beginner in Power BI, and I have a table like this:
I need a calculated column, with the total distinct values of 'Talle' column, if value in existencia is equal to 1. In the image above, the result should be 8, because there are 9 unique different values, but only 8 have 1 in 'Existencia' ( Talle= 3 , has Existencia=0). It' important to consider that , the same must be done for each Parent Item. Maybe in another Parent Id values, I could have the same values in 'Talle' Column. How could it be done? . Thanks in advance!!!
Solved! Go to Solution.
@Anonymous , Try like
calculate(distinctCOUNT(Table[Talle]), filter(Table, Table[existencia] =1))
Hi,
Please check the below picture and the attached pbix file.
It is for creating a new column.
Distinct count of Talle CC =
COUNTROWS (
SUMMARIZE (
FILTER (
Data,
Data[Existencia] = 1
&& Data[Parent_Item] = EARLIER ( Data[Parent_Item] )
),
Data[Talle]
)
)
You are using DAX, not Power Query Formula Language. See Create calculated columns for more information.
Hi,
Please check the below picture and the attached pbix file.
It is for creating a new column.
Distinct count of Talle CC =
COUNTROWS (
SUMMARIZE (
FILTER (
Data,
Data[Existencia] = 1
&& Data[Parent_Item] = EARLIER ( Data[Parent_Item] )
),
Data[Talle]
)
)
@Anonymous , try to create as a measure
new column as
calculate(distinctCOUNT(Table[Talle]), filter(Table, Table[existencia] =1 && [Parent_Item] = earlier([Parent_Item] ) ))
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
69 | |
68 | |
40 | |
29 | |
26 |
User | Count |
---|---|
88 | |
49 | |
45 | |
38 | |
37 |