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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
JPSingh
Frequent Visitor

DAX Formula regardless of a Category field

Hi there, I am trying to create a formula whereby I need to do the following product count + 0.65 * blank product count

e.g. for Outbound BDR it should be 14 + 0.65 * 4 = 17

In the below you have month, Product and then lead source. The problem I am having on all calculation is the product type because my calculations keep calculating Outbound BDR top (14) + 0.65 * (Blank) = 14 as it is unable to distinguish the count of non product because it is not related to a product. I need to calculate the value of lead source only regardless of product (in red) and I need to show it in this format. Any suggestions? 

JPSingh_5-1718186930801.png

 

 

 

 

 

3 REPLIES 3
Anonymous
Not applicable

Hi @JPSingh ,

May I ask if your problem has been solved. If the problem is not yet solved, please feel free to ask us a question.

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

rajendraongole1
Super User
Super User

Hi @JPSingh create the below measure to calculate the lead source value

 

TotalValue =
VAR TotalCount =
    COUNTROWS('inoutbound')

VAR BlankProductCount =
    CALCULATE(
        COUNTROWS('inoutbound'),
        FILTER('inoutbound', 'inoutbound'[Product] = BLANK())
    )

RETURN
    TotalCount + 0.65 * BlankProductCount
rajendraongole1_0-1718188520001.png

 

try the above logic 

 

 
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Hi @rajendraongole1 , Thank you. for the ('inoutbound') should I be using the lead_source. I have put it into a table so the field names are visible as the 'inoutbound' is what I am unsure because there could be other leadsources such as 'Inbound' that does not have a product code either.

JPSingh_0-1718189460810.png

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.