Hi folks! I want to create a measure in Powerbi. The measure would be a count distinct of a field in Table A divided by the count distinct of same field in Table B.
When I do a traditional divide function I am getting 100% by vendor. But in aggregate I am getting the right %. Any help as in why by Vendor I get 100%? If this were tableau I would do a fixed function but don’t know DAX enough to get through this. Thanks in advance!

like
Posting as :
works at
You are currently posting as works at

Sorry, been a while since I’ve been in PowerBI but used to have some solid knowledge. I’m not sure if it will be helpful, but I am curious if you are getting 100% by vendor because the logic is setup to look for [VendorName] in Table A and then [VendorName] in Table B. Since it is finding [VendorName] it is doing 1/1 = 1.

Couple potential testing points:
1) separate out the calculations. Such as create measure 1 associated with table A, then make measure 2 associated with table B. Then put those values in a table by vendor and check the data and see what it’s giving you
2) check the order of operations of how your measures are setup. I.E. are the CountD and table names properly ordered/organized?
3) are data types consistent?

Wish I could be a bit more help, I miss PowerBI and solving some problems like these then having that moment where you get the correct information. Loved that instant feedback!

helpful

Thank you very much for the response! In aggregate, I’m getting the right %, but for some reason when I do it by vendor it makes it 100%. Essentially my value in table B is being limited to the max of table A.

I almost had it by creating a related table based on count of rows but no major luck.

Still working through it but really appreciate your comment and time.

It’s like in school, when there was a hard math or Econ problem and you spend time thinking about it, then boom the result comes. No better feeling!

Hopefully you’ve figured this out since it’s been a hot minute since you posted, but you’ll wanted to check out the ALL filter as part of the CALCULATE function in DAX. It’ll let you calculate percentage of total. It’ll look something like:

= CALCULATE([Measure],ALL’Table’[Vendor])

I highly recommend checking out this article showing the difference between ALL, ALL SELECTED, and ALL EXCEPT, as those are hugely beneficial for calculating percentages using DAX in Power BI.

Related Posts

What is the best way to reach out to your in house agency ? I want to share our call for artists . Do I have go through HR? Or is there a place I can simply post an announcement ?

like

I’m a first year associate and perpetually concerned I’m going to get fired bc I feel like my work product isn’t at the level it should be. Does anyone have an idea of how easy/ hard it is to get fired?

like

Im a test away from passing my HFA in Indiana and also have B.A. 's in psychology and criminology, my MBA, and have been an LPN for 8 years. Any area I should be looking or reaching out to for a job? Thanks in advance.

like

I teach British Lit. For anyone else who teaches this, what are some of your favorites to teach? I have been doing Beowulf, The Canterbury Tales, Macbeth, Etc., but want to add something new this year

like

Has anyone exited to Appian Corporation? Looking at a strategy analyst role and wondering if it is the right opportunity.

like
likefunny

Hey guys.. anyone looking for good friend... Getting saturated with wfh :(

like

DM me for referral to Mitre. Great pay and benefits and really smart coworkers. Engineering background preferred

like

Hello... I recently travelled outside the US. My I-94 record's admission date is 11/04. However, my visa will expire on 10/16. Should I correct my I94 record?

like

Hi Fishes! I am searching for an opportunity in Financial Planning and Analysis role (Finance) with 7.7 years of experience. Any leads ? Appreciations in advance !!

like

Those of you who do First Chapter Fridays or similar read-alouds, do you edit out curse words when you’re reading?

Can anyone tells me the difference between GOC & Google?

So what's the deal with read receipt requests? Are they timing people once they have that notification? 🙄

likefunny

Anyone nearby Barclays kharadi?

like

Came up with an idea in an agency brainstorm, even who the influencer should be. Now it’s being executed, but I’m not working on it. Weird if I put it in my book? Maybe as just the one who came up with it?

like

Big 4 tax managers - how much do you make and which office?

like

Feedback from partners and directors needed for public accounting research question. I am curious what your feelings are on the current staffing situation in public accounting. Is there really a serious shortage in staffing? If so, do you think it is affecting the profitability of accounting firms (and/or partners individually)? And if so, what is preventing partners and directors from making changes to HR policies in response? I would love to get your thoughts and opinions on this. Thx!

like

Moving to London from US. Any recommendations on international moving/shipping service providers?

What's a guilty pleasure you indulge in at work?

like

Our school doesn't allow donors choose. I'm looking for a grant to buy some flex seating. Ant ideas??

Additional Posts in Data & Analytics Consultants

Have a lay-off meeting lined up, and now look for next opportunity. My background is around building machine learning models, data wrangling, visualization, feel confident with python. Open to any industry. Appreciate any lead on job opportunity. 3yrs of work experience

like

I have created Algorithmic Product/System for the client to take out inventory not-in-demand for long time to save storage expense and also provide an approach to prioritize Work Orders based on Market Demand. It’s more like an Manufacturing Plan. I want to get into Product Analyst/Lead role. What approach I should take? Any books to start with? Any events to attend? Any groups to join?

like

What is a data lake in basic terms?

like

What are some of the best online resources to learn Power BI?

like

Folks applying for Data and Analytics roles in the industry at M, SM, D Levels, what technical/functional topics do you prepare for on the Analytics side?

like

Anyone who has done masters in business analytics Singapore? Could you help on courses, Scholarships and careers and jobs. Looking for help.

Does your company split data science roles into different practices like data & analytics and software engineering? Does this inhibit collaboration & Where does a data engineer fall?

like

from God import pandemic
From China import coronavirus, mortality_rate

covid_19 = pandemic.coronavirus.set_mortality(mortality = 1.)

like

Anyone have any tips or material on effective storytelling to leadership? I have to present an analysis and recommendation to a VP and really need to put together a good story. Thanks!

like

I'm non US citizen and thinking of moving back to EU. My plan is getting remote opportunities across the world and work as a freelancer. My speciality is Data analytics and BI (Qlikview, Tableau). 1) How likely I can get a gig from the US? 2) if a job looking for a remote 2-3 months contract do they care what country I'm in? 3) how can I compete Indian rates as I'm in Europe 60-70$ per hour as a BI consultant is a good rate but I see online rates as low 10$😫?

like

My manager continues to ask me to help other teams and do work on other billable projects. I’m sick of it .. and I’m going to explicitly say that no I can’t do it because my hours are taken by the existing project we are doing. Is this appropriate?

like

Anybody interviewed for a data engineer role for Facebook? I have a SQL and Python coding interview next, any idea on what to expect?

like

Partner: Let’s take the data in the spreadsheet and put it in PowerBI so we can cut it up.

Me: What? It’s already cut up in the spreadsheet. I don’t get it.

Also me: Yeah! Analytics!

likefunny

Hiring for data scientists and BI analysts across a couple levels, DM me if interested!!

like

Learning cloud architecture right now so apologies if these are obvious questions: Best ways to store video metadata to perform analysis on it? I'm looking at AWS and GCP. Saw that Cassandra would be good for it, but not sure what the GCP equivalent is? But also I'm a bit confused on if Cassandra is just a DB and storage would need to be elsewhere? All help is welcome! I've been spinning my wheels on Google trying to understand

like

What do you think when associates/senior associates misspeak on a concept during a meeting or interview?

I’ve learned something new on each project, and I’m afraid of coming off as an idiot so I rarely contribute to conversations; only after I have done research on the topic and have prepared do I speak/give ideas

like

Hi! Does anyone know what kind of knowledge is needed to crack the Data Scientist interview at Google?

I'm currently working in Marketing Analytics (primarily using SQL and a bit of pyspark). Apart from mastering SQL, I wanted to know from people working at Google what does it take to get there as a Data Scientist? (I'm very interested in Strategy Ops)

I plan to another 6-8 months in preparation and upskilling myself before I even apply.
Any help and guidance is appreciated! Thanks :)

like
like

Anyone here work or has interviewed for a data science role at DataRobot? Would love to get some insight. Third interview coming up.

like

New to Fishbowl?

Download the Fishbowl app to
unlock all discussions on Fishbowl.
That was just a preview…
Sign Up to see all discussions
  • Discover what it’s like to work at companies from real professionals
  • Get candid advice from people in your field in a safe space
  • Chat and network with other professionals in your field
Sign up in seconds to unlock all discussions on Fishbowl.

Already a user?
Login here

Share

Embed this post

Copy and paste embed code on your site

Preview

Download the
Fishbowl app

See what’s happening in your industry
from the palm of your hand.

A phone with Fishbowl app

Scan your QR code to download
Fishbowl app on your mobile

Download app

Sign up for free to view this conversation on Fishbowl

By continuing you agree to Terms of Use and Privacy Policy

Already have an account? Log in

Sign up for free to continue using Fishbowl

By continuing you agree to Terms of Use(New) and Privacy Policy(New)
Messaging rates may apply

Already have an account? Log in

For account settings, visit Fishbowl on Desktop Browser or

General

Legal