cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
NarenderMakhija
New Member

Measure values are repeating in table

Hi Team,

I have a table that have fileds -  [Rec Year Month],       [No of Filter]   ,      [Received Date]
NarenderMakhija_0-1663750676050.png

I am showing them in power Bi table and it is repeating value of "2021-Jan" in each Rec Year Month. Below is my measure

Filer not null = calculate(DISTINCTCOUNT(Stage1_BI_Filers[NO_OF_FILERS]),FILTER(Stage1_BI_Filers, Stage1_BI_Filers[RECEIVED_DATE]<>"NUL"))

NarenderMakhija_2-1663751013356.png

 

But in sql i am getting rught data.

NarenderMakhija_5-1663751305772.png

 

In power Bi i am getting count 11147 in each [rec year month] but in sql jan-2021 has count 11147 and Feb-2021 has count 11821.

thatmeans in power bi it is repeating Jan-2021 count for every [rec year month]. 

Please advice me to sort out this issue so that it would not repeat same count .

 

Thanks & Regards

Narender

 

 

 

 

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @NarenderMakhija ,

 

I see you are using group by in sql, you may try this formula:

calculate(DISTINCTCOUNT(Stage1_BI_Filers[NO_OF_FILERS]),FILTER(ALLEXCEPT(Stage1_BI_Filers,[Year Month]), Stage1_BI_Filers[RECEIVED_DATE]<>"NUL"))

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hi @NarenderMakhija ,

 

I see you are using group by in sql, you may try this formula:

calculate(DISTINCTCOUNT(Stage1_BI_Filers[NO_OF_FILERS]),FILTER(ALLEXCEPT(Stage1_BI_Filers,[Year Month]), Stage1_BI_Filers[RECEIVED_DATE]<>"NUL"))

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
NarenderMakhija
New Member

Hello Team,
Any one knows about this?

 

Thanks 

Narender

Helpful resources

Announcements
May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Submit your Data Story

Data Stories Gallery

Share your Data Story with the Community in the Data Stories Gallery.

Top Solution Authors