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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Anonymous
Not applicable

Help with a Report

Hello,

 

Need help with a report. I have a table with sales per customer with NAME, DATE, QTY. and $ columns. With this data I build measures ACTUAL QTY, LAST MONTH QTY, ACTUAL $ and LAST MONTH $. 

 

Sem título.png

 

With this table I build the measure TYPE

 

TYPE = IF([VOL. LAST MONTH] = BLANK() && [VOL. ACTUAL] = BLANK(); BLANK();
            IF([VOL. LAST MONTH] = 0 || [VOL. ACTUAL] = 0; "MIX";
            IF([VOL. LAST MONTH] <> BLANK() && [VOL. ACTUAL] <> BLANK() && [Δ VOL.] <> 0 && [$ LAST MONTH] = [$ ACTUAL]; "VOLUME";
            IF([$ LAST MONTH] <> BLANK() && [$ ACTUAL] <> BLANK() && [Δ $] <> 0 && [VOL. LAST MONTH] = [VOL. ACTUAL]; "PREÇO";
            IF([VOL. LAST MONTH] <> BLANK() && [VOL. ACTUAL] <> BLANK() && [Δ VOL.] <> 0 && [$ LAST MONTH] <> [$ ACTUAL]; "VOLUME E PREÇO";
            IF([Δ VOL.] = 0 && [Δ $] = 0; "MESMO VOL. E R$/L"; "ERRO")))))) 

 

What I need to build is a summarized table  with values of  Δ $ and Δ VOL. by TYPE.

 

tipo.png 

But I get only one type with total values
type 2.png

Is someone able to help me?

 

Thanks in advance

1 REPLY 1
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous, 


 What I need to build is a summarized table  with values of  Δ $ and Δ VOL. by TYPE.

 

tipo.png 

But I get only one type with total values

 type 2.png


By my test, I cannot reproduce your scenario because I don't know the measures you created.

 

You could have a reference of SUMMARIZE Function (DAX) first.

 

If you still need help, could you share a dummy pbix file which can reproduce the scenario and your expected output, so that we can help further investigate on it? You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.)

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.