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

Calculation to a specific channel.

Hi all, 

 

I am creating a report to count the individual sales per channel.

 

This is usually an easy task to master; but I am having to do a different step: 

 

There are 5 distinct channels:

Broadcast

Digital

Social

Offline

Other

 

Before displaying the total sals per each; there should be an underlying measure for Radio's count. 

 

Broadcast = total sales( count of calls * multiplier)

 

How do I incorporate this into a single table along with the count of all the other channels?

 

If you need more information; I will provide!

 

Thanks.

6 REPLIES 6
v-shex-msft
Community Support
Community Support

HI @Anonymous,

 

It will be help if you share some sample data to test.

 

Regards,

XIaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

There is a matrix with a final result that looks like this:

 multiple.PNG

 

 

There are multiple Channels in one field.. And one "Total Sales" number that is being filtered by month. 

 

The problem is... there is a different calculation for one specific channel.. that can't be applied to the rest. 

 

The 'Broadcast' channel......

 

The formula for the broadcast channel looks like this:

 

= Total YTD Broadcast Sales + (# of broadcast sales MTD * .168)

 

How do I get this Calculated into this matrix without it being applied to any other channels??

 

@v-shex-msft

HI @Anonymous,

 

>>How do I get this Calculated into this matrix without it being applied to any other channels??

Write a measure to instead the default summary column, add if statement to check channel name to switch different calculation formula.

 

Sample:

 

Check Masure= 
var current_channel=LASTNONBLANK('Table'[channel],[channel])
return
IF(current_channel="Broadcast","specify formula","YTD formula")

 

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

Hi @v-shex-msft

 

Thanks for the response. 

 

I used this measure:

 

New Result =
var current_channel=LASTNONBLANK('Channel'[Channels],[Channels])
return
IF(current_channel="Broadcast/Radio",[Broadcast Formula],[Sales Total])

 

But it still did not apply the formula to the Broadcast Channel.. Any thoughts?

 

 

Anonymous
Not applicable

I am wanting to apply the formula to every instance where broadcast is the channel.. is Lastonblank the apppropriate DAX?

Hi @Anonymous,

 

Can you please share your sample pbix file to test?

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.