Forum Discussion
data is getting Aggregated / Dax help
- Anonymous2 years ago
Hi Madhu155154 ,
Something like this?This is because you can't reference columns directly in measures, you have to use them in conjunction with aggregate functions. This is because it is calculated in the filter context. The computation environment for a column is the row context, it can reference the column directly.
Try this.
= Var Res_ = AVERAGE(Append1[Req - CV share] ) return if( ISBLANK(MAX('Append1'[CV date])),"",Res_)
Hi Madhu155154 ,
Can you accept writing dax in Power BI Desktop to get the corresponding results?Power BI can use more practical DAX functions.Connect your pivot table using Power BI Desktop.
Use the following DAX expression to create a column
Req to Cv shared Avg Days =
VAR _datediff = ADDCOLUMNS('Table',"datediff",DATEDIFF([Least CV Date],TODAY(),DAY))
//Today - [Least CV Date]
VAR _result = AVERAGEX(_datediff,[datediff])
RETURN IF(ISBLANK([Least CV Date]),BLANK(),_result)
Today is 6/13/2024.(65/3 = 21.666666)
Finally, copy the table data into Excel.
Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.