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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

If a device is purchased in the first order what is the average amount spent per order on the first,

Hi all,

I have been assigned a task to understand the purchasing behaviour of customers for products.

 

I need to calculate average amount spent by the customer in the first,second...10th transaction if the first transaction contained a device.

I have a column with a device flag (Which has values 0 and 1)

Data_TypeOrder #Transaction_noProduct IDNameProduct ModelBundlesa part of bundleSingle OrderVuseXU_Engraved DeviceVuseXu_device_colourAll_Product_colourFlavours bundleFlavorBundle+FlavorFlavor_SKU_NamesSingle PodsDouble PodsTotal PodsDeviceAccessoriesProduct PriceQTYProduct Total PriceProduct TaxProduct Total Price_wFBOrder_Value_per_SKUProduct RewardProduct OptionOrder VouchersTotal with VatOrderTotalOrder StatusCustomer IDCustomer_AgeCurrencyDateDate ModifiedDate_REVTimeMonthYear
FY21120421206Crisp Mint - 6mgMint-601000001Crisp Mint - 6mgVuse 2 Pod Pack Crisp Mint 6mg01200AED 43.02AED 86.0AED 2.186860  Sub-Total - AED 214.0;
Coupon (Gena170d5) - AED -100.0;
VAT - AED 3.2;
Free Shipping - AED 0.0;
Total - AED 118.0
AED$117.50Complete194578236.0AED2021-12-30 14:41:062021-12-30 17:30:4412/30/20215:30:44 PM122021
FY2112042158Forest BlueberryBlueberry01000001Forest BlueberryVuse 2 Pod Pack Forest Blueberry 18mg01200AED 43.01AED 43.0AED 2.143430  Sub-Total - AED 214.0;
Coupon (Gena170d5) - AED -100.0;
VAT - AED 3.2;
Free Shipping - AED 0.0;
Total - AED 118.0
AED$117.50Complete194578236.0AED2021-12-30 14:41:062021-12-30 17:30:4412/30/20215:30:44 PM122021
FY21120421207Fresh AppleFresh Apple01000001Fresh AppleVuse 2 Pod Pack Fresh Apple 18mg01200AED 43.01AED 43.0AED 2.143430  Sub-Total - AED 214.0;
Coupon (Gena170d5) - AED -100.0;
VAT - AED 3.2;
Free Shipping - AED 0.0;
Total - AED 118.0
AED$117.50Complete194578236.0AED2021-12-30 14:41:062021-12-30 17:30:4412/30/20215:30:44 PM122021
FY21120421205Iced MangoIced Mango01000001Iced MangoVuse 2 Pod Pack Iced Mango 18mg01200AED 43.01AED 43.0AED 2.143430  Sub-Total - AED 214.0;
Coupon (Gena170d5) - AED -100.0;
VAT - AED 3.2;
Free Shipping - AED 0.0;
Total - AED 118.0
AED$117.50Complete194578236.0AED2021-12-30 14:41:062021-12-30 17:30:4412/30/20215:30:44 PM122021
FY2112041665Flavours bundleFlavour Bundle10000010Flavours bundle000000AED 171.42AED 342.9AED 8.6342.900  Sub-Total - AED 343.0;
VAT - AED 17.1;
Free Shipping - AED 0.0;
Total - AED 360.0
AED$360.00Complete194509338.0AED2021-12-30 14:16:102021-12-30 16:15:4412/30/20214:15:44 PM122021
FY2112041652Blushed MangoMango01000001Blushed MangoVuse 2 Pod Pack Blushed Mango 18mg01200AED 43.02AED 0.0AED 2.10860  Sub-Total - AED 343.0;
VAT - AED 17.1;
Free Shipping - AED 0.0;
Total - AED 360.0
AED$360.00Complete194509338.0AED2021-12-30 14:16:102021-12-30 16:15:4412/30/20214:15:44 PM122021
FY2112041652Blushed MangoMango01000001Blushed MangoVuse 2 Pod Pack Blushed Mango 18mg01200AED 43.02AED 0.0AED 2.10860  Sub-Total - AED 343.0;
VAT - AED 17.1;
Free Shipping - AED 0.0;
Total - AED 360.0
AED$360.00Complete194509338.0AED2021-12-30 14:16:102021-12-30 16:15:4412/30/20214:15:44 PM122021
FY2112041652Blushed MangoMango01000001Blushed MangoVuse 2 Pod Pack Blushed Mango 18mg01200AED 43.02AED 0.0AED 2.10860  Sub-Total - AED 343.0;
VAT - AED 17.1;
Free Shipping - AED 0.0;
Total - AED 360.0
AED$360.00Complete194509338.0AED2021-12-30 14:16:102021-12-30 16:15:4412/30/20214:15:44 PM122021
FY2112041652Blushed MangoMango01000001Blushed MangoVuse 2 Pod Pack Blushed Mango 18mg01200AED 43.02AED 0.0AED 2.10860  Sub-Total - AED 343.0;
VAT - AED 17.1;
Free Shipping - AED 0.0;
Total - AED 360.0
AED$360.00Complete194509338.0AED2021-12-30 14:16:102021-12-30 16:15:4412/30/20214:15:44 PM122021
FY2112041652Blushed MangoMango01000001Blushed MangoVuse 2 Pod Pack Blushed Mango 18mg01200AED 43.02AED 0.0AED 2.10860  Sub-Total - AED 343.0;
VAT - AED 17.1;
Free Shipping - AED 0.0;
Total - AED 360.0
AED$360.00Complete194509338.0AED2021-12-30 14:16:102021-12-30 16:15:4412/30/20214:15:44 PM122021
1 REPLY 1
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

I didn't find the ‘device flag’ you mentioned in your datasheet, can you provide simplified data for easy reference?

 

Best Regards,
Community Support Team _ Eason

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.