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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

dax measure show the highest value in a period

Hi guys,

 

Im trying to show only the month's max value along the period, but it isn't work it.

 

I have try a lot of option... I confess... I'm frustate. Here is the last formula.

 

MAXX Distinctcount Unique Contract = maxx(allselected(d_NTT_Dinamic_DataTable[Month Name]),DISTINCTCOUNTNOBLANK('BaseContratosMensais_IndicadorGerencial - SQL Results'[#UNIQUE_CONTRACT]))
 
 

max question.png

Tks,

---

Alexandre.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I have found a solution.

 

Top 1 Rank = CALCULATE([Distinctcount Unique Contracts],CALCULATETABLE(TOPN(1,ALL(d_NTT_Dinamic_DataTable[Month Name]),[Distinctcount Unique Contracts],DESC),ALL(d_NTT_Dinamic_DataTable),VALUES(d_NTT_Dinamic_DataTable[FY_NTT])))

 

After that, I have made a chart to highlight the major value.

 

Many thanks everybody.

 

truebeatles_0-1613590598488.png

 

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

It changed a little bit, but it not what I'm looking for.

 
Top 1 Rank = CALCULATE([Distinctcount Unique Contracts],TOPN(1,ALL(d_NTT_Dinamic_DataTable[Month Name]),[Distinctcount Unique Contracts],DESC),VALUES(d_NTT_Dinamic_DataTable[Month Name]))
truebeatles_0-1612468243319.png

 

Tks,

---

Alexandre.

amitchandak
Super User
Super User

@Anonymous , Try TOPN on month

 

Top 1 Rank = CALCULATE([Distinctcount Unique Contract],TOPN(1,all(Table[Month Year]),[Distinctcount Unique Contract],DESC),VALUES(Table[Month Year]))

Anonymous
Not applicable

It changed a little bit, but it not what I'm looking for.


Top 1 Rank = CALCULATE([Distinctcount Unique Contracts],TOPN(1,ALL(d_NTT_Dinamic_DataTable[Month Name]),[Distinctcount Unique Contracts],DESC),VALUES(d_NTT_Dinamic_DataTable[Month Name]))

 

I'm looking for this.

max question1.png

Tks,
Alexandre.

@Anonymous , remove the other measure from the table and check.

Anonymous
Not applicable

Same.

truebeatles_0-1612535132351.png

 

Anonymous
Not applicable

I have found a solution.

 

Top 1 Rank = CALCULATE([Distinctcount Unique Contracts],CALCULATETABLE(TOPN(1,ALL(d_NTT_Dinamic_DataTable[Month Name]),[Distinctcount Unique Contracts],DESC),ALL(d_NTT_Dinamic_DataTable),VALUES(d_NTT_Dinamic_DataTable[FY_NTT])))

 

After that, I have made a chart to highlight the major value.

 

Many thanks everybody.

 

truebeatles_0-1613590598488.png

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors