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 connected power BI with an sql Server and an easy Excel sheet.
Can I somehow create a measure (or whatever I have to use for this case) to multiply a column from the Excel sheet with a column from the sql query.
This is the case:
I want to know how much Service we generate with a special managed service article per month/year.
So from the sql query i get the information how often we sold the article (quantity) and in the excel sheet we noted how much service is in this article (in Euros). (The managed Service article is composed of service and software for example), thats why i seperated the service into the excel sheet.
in both sources i have the item number, so i have an information to connect the sources with each other.
What do I have to do (with DAX language?) to multiply the quantity with the Euro from each source so it is seperated on each item number.
I hope I have explained it understandably.
Thanks in advance
Solved! Go to Solution.
If there is only 1 entry in your Excel sheet for each item number then you can create a one-to-many relationship between that table and the table from SQL. You could then create a new calculated column on your SQL table like
Quantity * Service = 'Sales'[Quantity] * RELATED('Items'[Euros])
thank you very much, that helped 🙂
If there is only 1 entry in your Excel sheet for each item number then you can create a one-to-many relationship between that table and the table from SQL. You could then create a new calculated column on your SQL table like
Quantity * Service = 'Sales'[Quantity] * RELATED('Items'[Euros])
User | Count |
---|---|
25 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
13 | |
11 | |
9 | |
6 |