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
Tarun2020
Frequent Visitor

Not able to see distinct count by quarter in bar chart but I can see in the table

Hi Team,

 

I am struggling with the dax with distinct count of a column. it is only showing count of emp. (x axis quarter and y axis distinct count ). but when I am using same measure in table view ot is showing me the distinct count. please help me to understand where I am going wrong.

Tarun2020_0-1663337150281.png

Tarun2020_1-1663337190554.png

4 REPLIES 4
PabloDeheza
Solution Sage
Solution Sage

Hi there!

The are values that are both in Q1 and Q2, therefore the total will show the distict of Q1+Q2, which in this case is 931.

If what you want is to sum 716+483 then try a measure like this:

 

SUMX(
    ADDCOLUMNS(
    	VALUES( DateTable[Quarter] ),
    	"@Count", CALCULATE( DISTINCTCOUNT( YourTable[ColumnToCount] ) )
    ),
    [@Count]
)

 

Let me know if that helps!

Hi,

the above dax is giving me same result as . but I want 931 as count (which is distinct ) but in bar chart. 

 

SUMX(
    VALUES( DateTable[Quarter] ),
    CALCULATE( DISTINCTCOUNT( YourTable[ColumnToCount] ) )
)

This formula does the same thing and very likely faster as it does not have to materialize rows as it does in ADDCOLUMNS. Basically, ADDCOLUMNS should be avoided as much as possible in measures.

Hi,

 

I want ressult as if the skill name or Varinat chnage w.r.t the quarter then it will show as disntinct and count for the quarter but if the emp no. is same and his skill name and variant is also same as compare to the last quarter then will count him only in last quarter not in current quarter becs nothing has changed. Hope I am able to explain my problem.

 

Emp No.Skill Tag NameVariantQuarter INDUnique 
9033279Data ManagementBeginnerQ3Unique 
9033279Data ManagementCompetentQ3Unique 
6034397Tableau DeveloperCompetentQ3Unique 
900673125SQL DeveloperCompetentQ3Unique 
81901053Specialised Accountant - Financial Statement AnalysisBeginnerQ3Not unique
81901053Specialised Accountant - Financial Statement AnalysisBeginnerQ3Not unique
77037625Specialised Accountant - Reconciliation ExpertBeginnerQ3Unique 
6652207Appeals & GrievancesProficientQ3not uniuqe
6652207Appeals & GrievancesProficientQ4not uniuqe
4555227Appeals & GrievancesProficientQ3Not unique
4555227Appeals & GrievancesProficientQ4Not unique

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.

Top Solution Authors