Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello there.
I’ve searched but could not find na answer...
So, I have table like this:
ID | YEAR | E01A | E01C | E01D |
ABAN02800 | 2017 | 60 | 5,2 | 60 |
ABRA02950 | 2013 | 64 | ||
ABRA02950 | 2011 | 65 | ||
ABRA02950 | 2007 | 72 | ||
ABRA02950 | 2008 | 66 | 47 | |
ABRA02950 | 2015 | 62 | 53 | |
ABRA02950 | 2016 | 65 | 50 | |
ABRA02950 | 2014 | 67 | ||
ABRA02950 | 2017 | 61 | 54 | |
ABRA02950 | 2010 | 67 | 52 | |
ABRA02950 | 2009 | 68 | 49 | |
ABRA02950 | 2012 | 62 | ||
ACLA00500 | 2015 | 82 | 2,6 | 50 |
(…)
I need a second table (preferable in DAX) with these premises:
If you notice, the first ID “ABAN02800”, only have records for 2017, so it is not supposed to show. In opposite, ID “ABRA02950” is ok for that criteria.
The others parameters (e01C and E01D) are not supposed to appear.
I’ve tried every formula I know, from calculatetable, to filter with addcolumns
Thank you
Cheers from Brazil.
Solved! Go to Solution.
could you give this a go and let me know? @brunofs
Table =
FILTER (
SELECTCOLUMNS ( Data, "ID", [ID], "Year", [YEAR], "E01A", [E01A] ),
COUNTROWS (
CALCULATETABLE (
SUMMARIZE ( Data, Data[ID], Data[YEAR] ),
ALLEXCEPT ( Data, Data[ID] ),
Data[YEAR] >= 2013,
Data[YEAR] <= 2017,
NOT ( ISBLANK ( Data[E01A] ) )
)
)
= 5
&& [Year] >= 2013
&& [YEAR] <= 2017
&& NOT ( ISBLANK ( [E01A] ) )
)
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!
could you give this a go and let me know? @brunofs
Table =
FILTER (
SELECTCOLUMNS ( Data, "ID", [ID], "Year", [YEAR], "E01A", [E01A] ),
COUNTROWS (
CALCULATETABLE (
SUMMARIZE ( Data, Data[ID], Data[YEAR] ),
ALLEXCEPT ( Data, Data[ID] ),
Data[YEAR] >= 2013,
Data[YEAR] <= 2017,
NOT ( ISBLANK ( Data[E01A] ) )
)
)
= 5
&& [Year] >= 2013
&& [YEAR] <= 2017
&& NOT ( ISBLANK ( [E01A] ) )
)
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!
Thank you! Amazing! it worked like a charm!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
84 | |
76 | |
75 | |
43 | |
36 |
User | Count |
---|---|
109 | |
56 | |
52 | |
48 | |
43 |