Forum Discussion
Kella
3 years agoFrequent Visitor
DAX Measure - To get only one value for multiple rows
I am new to Power BI, I am facing issue where I want to create a new column based on the Invoice Date and the Invoice No. In below table, I want to calculate "What I want" column using DAX measure ...
- 3 years ago
pls try this
sum Invoice = SUM('Table'[Invoice]) ----- 35 in Invoice = VAR _t1 = SELECTEDVALUE('Table'[Invoice No]) VAR _t2 = SELECTEDVALUE('Table'[Invoice Date]) VAR _tbl = FILTER(ALL('Table'),'Table'[Invoice No]=_t1&&'Table'[Invoice Date]=_t2) VAR Results= RANKX(_tbl,[sum Invoice],,DESC) RETURN IF(Results =1,35)
Ritaf1983
3 years agoSuper User
Hi Kella
If i understood you correctly just add column with value you need an format it as currency:
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Kella
3 years agoFrequent Visitor
Thanks for your time but I need $35 to display for each Invoice No not for each row.