Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello I have the below table with the following columns :
Column 1 is hidden as its sensitive but contains brand. The rows highlighted in Yellow are Brand A & un-highlighted rows are Brand B
I tried card sales = value * Qty which worked fine
I have a column Discount value which indicates discount %
I want to multiple Card Sales with Discount which is not working correctly
Im trying to get the following value: Sales = Card Sales- (Card Sales * Discount_Value) which gives me 0.00 Im not sure why. Please help!
The column sales is set to Non Summarized & type Decimal with 4 places
Solved! Go to Solution.
Try create either a column or a measure as below:
Column = [value]*[qty]-([value]*[qty]*[Discount_value])
Measure =
var cardsales_= SUM([value])*SUM([qty])
Return cardsales_-cardsales_*SUM([Discount_value])
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
Try create either a column or a measure as below:
Column = [value]*[qty]-([value]*[qty]*[Discount_value])
Measure =
var cardsales_= SUM([value])*SUM([qty])
Return cardsales_-cardsales_*SUM([Discount_value])
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
Link to exported & summarized table : https://drive.google.com/file/d/1Q6x92CXMN3BAZik9vKB6GF3eHf9aTLrx/view?usp=sharing
@amitchandak Thank You!! that worked when I created a new measure with the suggested formula, not as accurate though:
@sam245gonsalves , if they are from same table try like
sumx(Table,[Card Sales]- ([Card Sales] * [Discount_Value]))
Else
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
94 | |
76 | |
62 | |
50 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |