Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

How to build up a matrix with contents from different table

Hi all,

 

Below is how my raw table look like:

Table 1    Table 3  
CustomerDateBonus typeAmount CustomerDatePurchase Amount
A5/1/2019Discount 5%50 A5/1/20191000
A5/2/2019Rebate100 A4/30/2019500
A4/30/2019New Join5 B5/3/2019500
B5/1/2019Rebate20 B4/29/2019100
B4/29/2019Discount 10%10 C5/9/201950
C5/2/2019Rebate3 C4/30/2019300
        
Table 2       
CustomerDateBonus typeAmount    
A4/30/2019Sign up2    
B5/4/2019Reload bonus5    
B4/29/2019Sign up2    
C5/5/2019Reload bonus5    
C5/3/2019Friends10    

 

I would like to get a visualisation for May as below:

If bonus/purchase > 10% then i would like to know the details of their bonus apply.

CustomerPurchase AmountTotal bonus amountBonus/PurchaseRebateDiscountReload bonusFriends
A100015015.0%1005000
B500255.0%20050
C50816.0%30510

 What i did was use measure to calculate sum of each bonus type. However, the type of bonus was too many (>20) and will be adding new type from time to time. Thus, i would like to know, is there any simpler way to have this done? (If possible, i will not want the table to be appended as it will crash due to the huge data size)

 

5 REPLIES 5
Arjunarao
Resolver I
Resolver I

If I calculate the % this was the output.

 

Which records you want to pick?

 

CustomerBonus typeBonus AmtPurchase AmtBonus Amt/Purchase Amt %
ADiscount 5%5015003.33%
ANew Join515000.33%
ARebate10015006.67%
ASign up215000.13%
BDiscount 10%106001.67%
BRebate206003.33%
BReload bonus56000.83%
BSign up26000.33%
CFriends103502.86%
CRebate33500.86%
CReload bonus53501.43%
Anonymous
Not applicable

@Arjunarao 

the bonus/purchase amount should be total bonus/total purchase amount. For the case of customer A, it should be 150/1500 = 15%.  To get the total bonus of customer A in May, I have to add up the 50 from Discount 5% and 100 from rebate in Table 1. (If for Customer C, then you will have to add up the bonus in Table 1 and Table 2). If this ratio of a customer is > 10%, then i would like it to be shown in my visualisation in the format that i showed previously.

sorry for making you confuse.

Explain your requirement for Customer A

Arjunarao
Resolver I
Resolver I

Hi, Can you elaborate "If bonus/purchase > 10% then i would like to know the details of their bonus apply" with an example of a customer?

Anonymous
Not applicable

@Arjunarao,

This is the visualisation result that i wish to have.

CustomerPurchase AmountTotal bonus amountBonus/PurchaseRebateDiscountReload bonusFriends
A100015015.0%1005000
C50816.0%30510

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.