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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
lavadba
Employee
Employee

Need help on the DAX formulation

I would like to prepare a PBI report with below parameter.

 

  • Net New – Any user who used the Application in the last month and hasn't ever used before.

  • Any user who used Application in the last month (e.g., Sep 2022), but didn’t use it for over 6 months before Last month (e.g., didn’t use in the timeframe of Aug –Mar 2022).

Any body can help on how to prepare the DAX formula for above condition.

5 REPLIES 5
v-jianboli-msft
Community Support
Community Support

Hi @lavadba ,

 

I can't get enough details from your screen shot. Could you please provide more details about your data? Such as another month and your source table.

Please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.

 

Refer to:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi v-jianboli,

Please find the link below which contains the sample data.

 

https://1drv.ms/u/s!AviWXdHQvbntpEuJaStqa9SuESUf?e=iaIqRp

 

Below conditions are is the requirement to create a trend chart for users.

Trend chart showing monthly usage trends for the following personas of users:

o Net New – Any user who used at all before application in the focus month and hasn't ever used application.

o Long-Regained - Any user who used application in the focus month (e.g., Sep 2022), but didn’t use it for over 6 months before focus month (e.g., didn’t use in the timeframe of Jul –Feb 2022) AND used it at least once before 6 months (i.e. before Feb 2022).

o Short-Regained - Any user who used application in the focus month (e.g., Sep 2022), but didn’t use it in 1 months before focus month (e.g., didn’t use in the timeframe of July 2022) AND used it between the last 2 to 6 months period (e.g., used it at least once in the period of June 2022 - Feb 2022).

 

lavadba
Employee
Employee

I am unable to upload the pbix file here.  attaching the screen shot of the data. please let me know is there any other way.

lavadba_0-1665619802871.png

 

 

v-jianboli-msft
Community Support
Community Support

Hi @lavadba

 

Based on your description, I have created a simple sample:

vjianbolimsft_1-1665392345732.png

Please try:

First create three measures:

 

Count Last Month = COUNTX(FILTER('Table',MONTH([Date])=MONTH(TODAY())-1),[User])

Count Before = COUNTX(FILTER('Table',MONTH([Date])<MONTH(TODAY())-1),[User])

Count 6 Month Before Last Month = COUNTX(FILTER('Table',MONTH([Date])<MONTH(TODAY())-1&&MONTH([Date])>MONTH(TODAY())-8),[User])

 

 

Then create a new table with [User] Column and rename it:

vjianbolimsft_1-1665393331023.png

 

Apply the measures to the visual level filter:

vjianbolimsft_0-1665393282997.png

Recreate a new table for users who didn’t use it for over 6 months before Last month and apply filter:

 

vjianbolimsft_4-1665394236356.png

Final output:

vjianbolimsft_5-1665394269575.png

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Jihwan_Kim
Super User
Super User

Hi,

I usually try to solve this types of problem by using INTERSECT and EXCEPT DAX functions.

If possible, please share your sample pbix file's link here, and then I can try to look into it to come up with a proposal.

Thanks.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors