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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
rajasekar_o
Helper IV
Helper IV

calculate sales value based on top 3 target

I  have data of target and sales 
1.I want to calculate ASM wise  sales based on  top3flg=y and top3 target
2.BM wise  sales Based on top3flg=y and top3 target

dealer codeASO codeASM codeBM codetargetsalestop 3flg
DEALE-01ASO-01ASM-01BM-011000985Y
DEALE-02ASO-01ASM-01BM-013245868 
DEALE-03ASO-01ASM-01BM-0124548686Y
DEALE-04ASO-01ASM-01BM-0153758668 
DEALE-05ASO-01ASM-01BM-0184536546Y
DEALE-06ASO-02ASM-01BM-0153536464 
DEALE-07ASO-02ASM-01BM-0154365364Y
DEALE-08ASO-02ASM-01BM-0143245363Y
DEALE-09ASO-02ASM-01BM-0195746464 
DEALE-10ASO-02ASM-01BM-0195758437Y
DEALE-11ASO-03ASM-01BM-0185644443Y
DEALE-12ASO-03ASM-01BM-0175935356Y
DEALE-13ASO-03ASM-01BM-0163457567 
DEALE-14ASO-03ASM-01BM-0143454535Y
DEALE-15ASO-03ASM-01BM-0134257654Y
DEALE-16ASO-04ASM-01BM-0136452345 
DEALE-17ASO-04ASM-01BM-0186753437Y
DEALE-18ASO-04ASM-01BM-0153424645 
DEALE-19ASO-04ASM-01BM-0135453678Y
DEALE-20ASO-04ASM-01BM-0142434267Y
DEALE-21ASO-05ASM-01BM-0174388453 
DEALE-22ASO-05ASM-01BM-0198575353y
DEALE-23ASO-05ASM-02BM-0195755436 
DEALE-24ASO-05ASM-02BM-0195854324y
DEALE-25ASO-05ASM-02BM-0194749574 
DEALE-26ASO-06ASM-02BM-0198769575 
DEALE-27ASO-06ASM-02BM-0179768564y
DEALE-28ASO-06ASM-02BM-0186987593 
DEALE-29ASO-06ASM-02BM-0179696345y
DEALE-30ASO-06ASM-02BM-0197974345 
DEALE-31ASO-07ASM-02BM-0175478453 
DEALE-32ASO-07ASM-02BM-0197595353y
DEALE-33ASO-07ASM-02BM-0186865436 
DEALE-34ASO-07ASM-02BM-0150004324y
DEALE-35ASO-07ASM-02BM-0175959574 
DEALE-36ASO-08ASM-02BM-0159599575y
DEALE-37ASO-08ASM-02BM-0198538564y
DEALE-38ASO-08ASM-02BM-0153987593y
DEALE-39ASO-08ASM-02BM-0185596345 
DEALE-40ASO-08ASM-02BM-0198534345y
4 REPLIES 4
_AAndrade
Super User
Super User

Hi @rajasekar_o,

Could you provide the output that you're looking for, using the data that you've shared?





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




rajasekar_o_0-1713938087260.png

i want  sales amount of top 3 target 

the expected out put is bm top 3= 26201

@rajasekar_o,

With the data you provided, I can't get those numbers.

Another doubt is that you've asked these questions:
1.I want to calculate ASM wise  sales based on  top3flg=y and top3 target
2.BM wise  sales Based on top3flg=y and top3 target

but you've only presented a simple table.
Could you please indicate the final result you want for each question?





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




@_AAndrade 
TOP 2 

rajasekar_o_1-1714470244043.png

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.