Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

Need help in DAX.

I have different brands and clients with their respective YTD values of Revenue and Gross Profit.

Based on Revenue $ Change values I have written a DAX which shows Growth ( Positive Value = "Growing", Negative Value ="Declining", Zero="No Current Business")

I want to create a DAX which gives me the count of Only Growing Clients.

When I tried to create the same it is giving the error shown above.

Demo Data Table: DAX has to be calculated to get a growing count on Brand With Business Column.

 

ClientBrand NameAD Rev YTD 2021AD GP YTD 2021Brand With BusinessOverall AD Rev GrowthRev_$_ChangeRev % ChangeOverall AD GP GrowthAD GP $ ChangeAD GP % Change
Client 1Brand 16600080001Growing2200060.00%Growing280050.00%
Client 1Brand 24400090001Growing25000105.00%Growing380065.00%
Client 1Brand 300 No Current Business0 No Current Business0 
Client 1Brand 43003001Growing1600 Growing1600 
Client 1Brand 516009001Declining-20-12.00%Declining-0.55-2.00%
Client 2Brand 1120000180001Declining-30-0.10%Growing62044.00%
Client 2Brand 24300090001Growing900030.00%Growing17002.00%
Client 2Brand 300 No Current Business0 No Current Business026%
Client 2Brand 461000470001Growing500016.00%Growing18008.00%
Client 2Brand 500 No Current Business0 No Current Business0 

 

Require OutPut: Brand with business showing count for only growing clients.

Client

Brand

Name

AD Rev YTD 2021AD GP YTD 2021Brand With BusinessOverall AD Rev GrowthRev_$_ChangeRev % ChangeOverall AD GP GrowthAD GP $ ChangeAD GP % Change
Client 1Brand 16600080001Growing2200060.00%Growing280050.00%
Client 1Brand 24400090001Growing25000105.00%Growing380065.00%
Client 1Brand 300 No Current Business0 No Current Business0 
Client 1Brand 43003001Growing1600 Growing1600 
Client 1Brand 51600900 Declining-20-12.00%Declining-0.55-2.00%
Client 2Brand 112000018000 Declining-30-0.10%Growing62044.00%
Client 2Brand 24300090001Growing900030.00%Growing17002.00%
Client 2Brand 300 No Current Business0 No Current Business026%
Client 2Brand 461000470001Growing500016.00%Growing18008.00%
Client 2Brand 500 No Current Business0 No Current Business0 

Thank you in Advance.

 

lbendlin PowerBI

1 Reply

  • Please provide sanitized sample data in usable format (not as a picture - inserting it into a table would be good) and show the expected outcome.