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.
Hi All i am new in pwoer BI
I Have issue which i can not solve
i have transaction data with carsSales , Truck Sales and also discountcars , discount truck .
i want to calculate the net sales out of these transaction and put is in matricx like
net Sales Truck = 500
disc Sales Truck = 100
Net Sales Truck = 400
can anyone help me in this
Thanks
Hi @Hossam-sgiq ,
What's your expected output?
Based on my test, I have create measures to calculate the Total Sales and Total discount for each Account on each Day:
As you can see, they are not in a same hierarchy, so how could I calculate the net sales ?
Can you please share more detail information especially the expected output to help us clarify your scenario?
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @selimovd thanks for your reply
my table as following
Account | Date | Value | Group |
1123 | 01-01-2020 | 500 | Truk Sales |
1123 | 01-02-2020 | 400 | Truk Sales |
2223 | 01-01-2020 | 50 | Truk Discount |
2223 | 01-02-2020 | 30 | Truk Discount |
1145 | 01-01-2020 | 600 | Vehicle Sales |
1145 | 01-01-2020 | 800 | Vehicle Sales |
2245 | 01-01-2020 | 200 | Vehicle Discount |
2245 | 01-01-2020 | 100 | Vehicle Discount |
so i want to add matrix to show: total Sales , Total discount , Total Net Sales
how to show the net sales as row . thanks
Hey @Hossam-sgiq ,
you can do the sum of each column and then subtract them. Try the following approach:
Net Sales Truck Measure =
SUM ( myTable[net Sales Truck] ) - SUM ( myTable[disc Sales Truck] )
User | Count |
---|---|
77 | |
74 | |
42 | |
32 | |
28 |
User | Count |
---|---|
100 | |
93 | |
52 | |
50 | |
48 |