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.
I M GEETING ERROR in this formula "Multiple arguments are not allowed in the ALLSELECTED function when the first argument is a table reference." any one tell me where im wrong
Solved! Go to Solution.
@SkorpionAAM , Try like
SUMx('Calculation',[Requeird pop*0.45]) * ALLSELECTED('Operation Cost'[Operation Cost])
refer: https://docs.microsoft.com/en-us/dax/allselected-function-dax
https://www.sqlbi.com/articles/the-definitive-guide-to-allselected/
Hi,@SkorpionAAM
The syntax of ALLSELECTED is incorrect.
The ALLSELECTED function returns the context of the query without any column and row filters.
If there is one argument, the argument is either tableName or columnName.
If there is more than one argument, they must be columns from the same table.
But ALLSELECTED maybe is not the best way to solve it, you can try like this to meet your needs,
Measure =SUMX ( 'Calculation', [Requeird pop*0.45] ) * SELECTEDVALUE ( 'Operation Cost'[Operation Cost] )
Or
Measure =SUMX ( 'Calculation', [Requeird pop*0.45] ) * MAXX( 'Operation Cost'[Operation Cost] )
If you want to learn more about it ,you can refer to : https://docs.microsoft.com/en-us/dax/allselected-function-dax
Hope it helps.
Best Regards,
Caitlyn Yan
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi,@SkorpionAAM
The syntax of ALLSELECTED is incorrect.
The ALLSELECTED function returns the context of the query without any column and row filters.
If there is one argument, the argument is either tableName or columnName.
If there is more than one argument, they must be columns from the same table.
But ALLSELECTED maybe is not the best way to solve it, you can try like this to meet your needs,
Measure =SUMX ( 'Calculation', [Requeird pop*0.45] ) * SELECTEDVALUE ( 'Operation Cost'[Operation Cost] )
Or
Measure =SUMX ( 'Calculation', [Requeird pop*0.45] ) * MAXX( 'Operation Cost'[Operation Cost] )
If you want to learn more about it ,you can refer to : https://docs.microsoft.com/en-us/dax/allselected-function-dax
Hope it helps.
Best Regards,
Caitlyn Yan
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
@SkorpionAAM , Try like
SUMx('Calculation',[Requeird pop*0.45]) * ALLSELECTED('Operation Cost'[Operation Cost])
refer: https://docs.microsoft.com/en-us/dax/allselected-function-dax
https://www.sqlbi.com/articles/the-definitive-guide-to-allselected/
User | Count |
---|---|
73 | |
72 | |
39 | |
25 | |
23 |
User | Count |
---|---|
96 | |
93 | |
51 | |
43 | |
42 |