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.
Hi All
My sales Table , each customer sales order can be contribute by 1 or 2 different sales group CLASS or TYPE.
I am able to create report Table A and B by sales staff. no issue as below.
Sales table by (CLASS) sales staff base on customer base allocate to them :-
Table A
GROUP_CLASS_K | Sales LYTD |
AO | 41760 |
AP | 34163 |
Other | 25437 |
Total | 101360 |
Sales report by (TYPE) sales staff , base on customer allocate to them and also include those customer sales from other sales staff :-
Table B
GROUP_TYPE_K | Sales LYTD |
AO | 71660 |
AP | 4263 |
Other | 25437 |
Total | 101360 |
May i know how to create the Table , As below :-
Table C ( Expected Result )
GROUP SALES | Sales LYTD |
AO | 71660 |
AP | 34163 |
Other | 25437 |
Total | 131260 |
Please note that , above table table the highest value from Table A and B.
Above Table Row 1 amount 71660 , taken from Table B
Above Table Row 2 amount 34163 , taken from Table A
Remark :-
Table A Column 1 field name = GROUP_CLASS_K
Table B Column 1 field name = GROUP_TYPE_K
Hope some can advise me how to achieve the above ?
Paul Yeo
Hi,
Standardise the column headings of TableA and TableB. Create another Table with a single heading called Group. Create a relationship from the the standardised heading of the appende Table to the Group column of the single column table. to your visual, drag the heading from the single column table. Write these measures:
Measure = max(data[Sales LYTD])
Measure1 = if(hasonevalue(Groups[Group]),[Measure],SUMX(VALUES(Groups[Group]),[Measure]))
Hope this helps.
I am not sure what you mean , standarise the column heading ?
Enclosed my PBI file , hope you can advise me.
https://www.dropbox.com/s/774pcqhxaedsjul/PBT_V2021_515%20ASK_.pbix?dl=0
Paul
By that i mean ensure that the spellings of the headings are the same. Please do it yourself.
Thank you very much for your advise.
i have create a new table as below :-
When i try to create the measure you mentioned :-
Can you please advise me where go wrong ?
My PBI file :-
https://www.dropbox.com/s/20swme1z1vvss90/PBT_V2021_515%20ASK_1.pbix?dl=0
Paul
Hi,
You did not mention that Group Type and Group Class are calculated tables. I do not work with calculated tables. Someone else will help you.
When you said my table is calculated table. Expression can not be created.
i Try to change to below :-
May i know , what should i modify my table , so that your expression , will be no error ?
Paul
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 |
---|---|
115 | |
100 | |
90 | |
68 | |
61 |
User | Count |
---|---|
150 | |
120 | |
100 | |
87 | |
68 |