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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
censoft17
Frequent Visitor

Display New Customers list

Hi,

I want to display a list of new customers within a particular date range.

For eg new customers list for July 2017

 

Output Template:

CustomerID || OrderID || FullName || EmailID || OrderDate || ProductName

 

Please provide a valuable solution.

4 REPLIES 4
Eric_Zhang
Employee
Employee

@censoft17

If the new customers means those who have the first order in the selected month, you can create a measure as below. See more in the attached pbix file.

isFirstOrder =
IF (
    CALCULATE (
        MIN ( yourTable[date] ),
        ALLEXCEPT ( yourTable, yourTable[customer] )
    )
        = MAX ( yourTable[date] ),
    1,
    BLANK ()
)
bsas
Post Patron
Post Patron

Hi,

 

Create slicer with month to select. it will show you list of customers depending on selected period.

in Tableau, there is Fixed function , so the calculation i used to use was,

{FIXED CustomerID : min(Orderdate)} . [LOD Calculation]

 

How to use DAX calculation in power BI?

In PBI you can use filter on your visual and there indicate your needs.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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