Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
How to write Dax expression in Power BI tabular model . Please suggest
Select Count(*) , Year FROM [DBO].[Table] A
where UnitsReceived = 0
Group by Year
Solved! Go to Solution.
@Parihar1980 wrote:
How to write Dax expression in Power BI tabular model . Please suggest
Select Count(*) , Year FROM [DBO].[Table] A
where UnitsReceived = 0
Group by Year
Probably you may not need any DAX expression, as you can apply the SQL logic by using a slicer and a table visual.
Definitely you can create a calculated table with equivalent DAX.
Table 2 = SUMMARIZE ( ADDCOLUMNS ( FILTER ( 'Table', 'Table'[UnitsReceived] = "0" ), "Year", YEAR ( 'Table'[Date] ) ), [Year], "count", COUNTA ( 'Table'[UnitsReceived] ) )
@Parihar1980 wrote:
How to write Dax expression in Power BI tabular model . Please suggest
Select Count(*) , Year FROM [DBO].[Table] A
where UnitsReceived = 0
Group by Year
Probably you may not need any DAX expression, as you can apply the SQL logic by using a slicer and a table visual.
Definitely you can create a calculated table with equivalent DAX.
Table 2 = SUMMARIZE ( ADDCOLUMNS ( FILTER ( 'Table', 'Table'[UnitsReceived] = "0" ), "Year", YEAR ( 'Table'[Date] ) ), [Year], "count", COUNTA ( 'Table'[UnitsReceived] ) )
thanks a lot
thanks sir
But I am not sure when i am writing DAX code for this expression its not working
Select Count(*) ,[FLAG] FROM DimTable]
Group by [FLAG]
Kindly suggest
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 |
---|---|
11 | |
6 | |
4 | |
2 | |
2 |
User | Count |
---|---|
4 | |
3 | |
3 | |
3 | |
3 |