We are Using SELECTCOLUMNS Function for providing Alais Name, SUMMARIZE function for Aggregating the Data, also we are using FILTER function to filter data in the same query.
Requirement : We want to perform Aggregation on Some other Columns and want to perform Filter on another column in a same query. As we can do in SQL, Can we do in DAX also, if yes then can you post an example?
SQL Example:
select Column1 from TableName where Column2 = 'PO Flag' group by Column1
.
DAX Example:
Evaluate ( SelectColumns( Filter ( Summarize (
'Internet Sales',
'Product'[Model Name],
"Sales",SUM('Internet Sales'[Sales Amount])
) ,
'Product'[Product Name]="HL Road Tire"
) , "Product",'Product'[Model Name], "Sales",[Sales] ) )
Please help !!!!