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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
taher
Helper II
Helper II

get data visual

Hi all,

 

I want to get some data when the user is using my power Bi-Project.

I mean for example: in my report, there is a slicer to filter the data in a specific period. In the same moment there is a card in my report using a measure, this measure needs to know how many quarters in the chosen time there ist to do some work.  

I would be glad for any help!

Regards,

1 ACCEPTED SOLUTION
v-sihou-msft
Microsoft Employee
Microsoft Employee

@taher

 

In this scenario, I assume you use a date slicer to select period. If you want to count quarters in selected period, you need to add a Quarter column in your table first.

 

Quarter = YEAR('Calendar'[Date]) & "Q" & ROUNDDOWN((MONTH('Calendar'[Date])-1)/3+1,0)

Then add a measure the distinct count Quarter column based on selected dates.

 

 

Measure = CALCULATE(DISTINCTCOUNT('Calendar'[Quarter]),ALLSELECTED('Calendar'[Date]))

78.PNG

 

 

Regards,

View solution in original post

2 REPLIES 2
v-sihou-msft
Microsoft Employee
Microsoft Employee

@taher

 

In this scenario, I assume you use a date slicer to select period. If you want to count quarters in selected period, you need to add a Quarter column in your table first.

 

Quarter = YEAR('Calendar'[Date]) & "Q" & ROUNDDOWN((MONTH('Calendar'[Date])-1)/3+1,0)

Then add a measure the distinct count Quarter column based on selected dates.

 

 

Measure = CALCULATE(DISTINCTCOUNT('Calendar'[Quarter]),ALLSELECTED('Calendar'[Date]))

78.PNG

 

 

Regards,

Hi  @v-sihou-msft,

 

thank u very much 🙂

it did work 🙂

 

Regards,

 

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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