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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
adiletsh
Frequent Visitor

How to calculate distinct dax data in period when periodly meets not same data

Hello everyone


I've used in formula distinct dax to calculate Daily data. And I was given a task to get data in a period. In a period distinct data not working because there meets not same data like in a daily data. Visualization filters by data and unique elements. 

the formula looks like this: 

var _density_min = _heads_min / DISTINCT('Table'[column])

_heads_min    calculates sum of quantity, and I need to divide to distinct value. In a period I took data for a month or more and there probably meets two distinct value like (1920, 1890). Each day has its own unique distinct value.


So,  my problem is calculate this value in a period.


Thank you in advance
2 REPLIES 2
amitchandak
Super User
Super User

@adiletsh ,

 

You can try like

 

Averagex(Values(Table[Period]), calculate(_heads_min) )

 

The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

To explain my problem:

I had use this formula : var _density_min = _heads_min / DISTINCT('Table'[column]). It works only for daily data. 

So, I need to calculate data with this formula in a period. But it's not working. because in a period in  'Table'[column]  meets different values


Сould I explain it more clearly?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors