Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
I am writing this as I am fairily new to Power BI and was tasked with creating some reporting with my companies data and I was wondering if I could have someone give me some quick pointers on this issue I have.
The info that I am tasked to create a report with is all in Qualifiable data with no values and for the straight forward items its as easy as dropping in the column and selecting it as a count value.
The issue arises for an example I have attached below.
So for some of the data some companies can order a product but can order different ones on top of a single order but since its linked to an individual order and date each item is listed in the 1/2/3 item column.
My issue is trying to combine these items so that I can have a count of total "Choco" for example to use in a report that can link either per company or individual based on all 3 columns as a single value. My only solution at the moment is to enter each column as a value but for example on a stack bar chart will come up as 3 seperate values for "Choco" on top of each other when only 1 is needed for ease of use and formating.
If any better explaination is needed please let me know and thank you anyone for taking the time out of their day to help!
Solved! Go to Solution.
Hi, @Marcus-G ;
You could create a measure by dax.
totalcount =
CALCULATE(COUNT('Table'[Cookie 1]),'Table'[Cookie 1]="Choco")+
CALCULATE(COUNT('Table'[Cookie 2]),'Table'[Cookie 2]="Choco")+
CALCULATE(COUNT('Table'[Cookie 3]),'Table'[Cookie 3]="Choco")
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Marcus-G ;
You could create a measure by dax.
totalcount =
CALCULATE(COUNT('Table'[Cookie 1]),'Table'[Cookie 1]="Choco")+
CALCULATE(COUNT('Table'[Cookie 2]),'Table'[Cookie 2]="Choco")+
CALCULATE(COUNT('Table'[Cookie 3]),'Table'[Cookie 3]="Choco")
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You have 2 options to keep things simple:
write a measure to count the values in each 'cookie' column i.e. you combine the resuts for each column
or
UnPivot the 'Cookie' columns in Power Query and you'll have one column to write a measure or drag on to a visual to use default aggregations
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!