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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
SenthilKumarSiv
New Member

Measure not showing all records?

Hi,

I am new to Power BI. I need your help to address my query.

I have purchase data for last two months. We have purchased same items with different prices on different dates.

I want to find out the standard deviation.

Step -1

Imported the data from Power BI desktop

SenthilKumarSiv_0-1678519151273.png

 

Item Number = Part code, Sum of Quantity = Total Purchased qty , Count of Unit Price = How many times the item was purchased, Sum of Unit Price = Unit Price for each,

Variation % = I have used Measure for calculation (Variation% = (STDEV.P('Purchase Data'[Unit Price])/AVERAGE('Purchase Data'[Unit Price]))*100)

XYZ = I have used Measure for Calculation (XYZ = IF(([Variation%]<=10),"X",IF([Variation%]<=25,"Y","Z"))

 

I have managed to get tables.

 

But, I can't use XYZ Measures for visuals.

 

I want output like in Table /Slicer/Graph format

 

XYZCount of Item Number
X50
Y100
Z900

 

But the above is not coming. Please help me to get the same

 

thanks in Advance

 
2 REPLIES 2
tamerj1
Super User
Super User

Hi @SenthilKumarSiv 
Create a single column table that contains { "X", "Y", "Z" } let's call it filter table. Place FilterTable[XYZ Column] in the table visual alon with the following measure.

Count =
SUMX (
    VALUES ( 'Table'[Item Number] ),
    INT ( [XYZ] = SELECTEDVALUE ( FilterTable[XYZ Column] ) )
)

Hi,

Sorry for late reply and thanks for solution..

Its working 100%....👌

Have a great day...

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.