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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Aleiadeh
Frequent Visitor

Count Concatenate Measure

Hello,

 

Please I need your support to find a solution for me on the following issue. I will try to expadite my explnation and what I need as much as I can:

 

I have a Bid Status Table updated on weekly based, hereunder the structure of the table:

 

- Table(1):

 

Bid No.1/1/20218/1/202115/1/202122/1/202129/1/2021
Bid-001Bid PreparationIn MarketIn MarketBid OpeningAwarded
Bid-002Bid PreparationIn MarketBid OpeningAwardedAwarded
Bid-003Bid PreparationAwardedAwardedAwardedAwarded
Bid-004Bid PreparationAwardedAwardedAwardedAwarded
Bid-005Bid PreparationBid PreparationIn MarketIn Market In Market


So now, If I inserte Date Slicer ( between two dates) after unpivot the table and select the period from 8/1/2021 To 22/1/2021, then the result that I need after concatenate First and Last Date Status will be:

 

- Table(2):

 

Bid No.

Status Changes based selected dates 

from 8/1/2021 To 22/1/2021

Bid-001In Market - Bid Opening
Bid-002In Market - Awarded
Bid-003Awarded - Awarded
Bid-004Awarded - Awarded
Bid-005Bid Preparation - In Market

 

Now The most important step is to count the distinct changes:

 

- Table(3):

 

Status Changes

Count

In Market - Bid Opening1
In Market - Awarded1
Awarded - Awarded2
Bid Preparation - In Market1

 

Actually I did all steps as per the below photo but I didn't know how to get Table(3)!

 

Untitled1.jpg

Could you please help me to solve this issure.

 

If any explanation is not clear please let me know.

 

Thank you in advace.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Aleiadeh ,

 

It's impossible to achieve such a table visual with only measures. It will return a single row like this:

3.12.1.measure table.PNG

And you want to select date dynamically via slicer, so it is impossible to create a calculated table as well.

 

Please try this:

Status Changes =
VAR _MINDATE =
    MINX ( 'Table(1)', 'Table(1)'[Attribute] )
VAR _MAXDATE =
    MAXX ( 'Table(1)', 'Table(1)'[Attribute] )
VAR _MINVALUE =
    CALCULATE (
        MAX ( 'Table(1)'[Value] ),
        FILTER ( 'Table(1)', 'Table(1)'[Attribute] = _MINDATE )
    )
VAR _MAXVALUE =
    CALCULATE (
        MAX ( 'Table(1)'[Value] ),
        FILTER ( 'Table(1)', 'Table(1)'[Attribute] = _MAXDATE )
    )
RETURN
    _MINVALUE & " - " & _MAXVALUE
COUNT =
VAR _T =
    SUMMARIZE (
        ALLSELECTED ( 'Table(1)' ),
        'Table(1)'[Bid No.],
        "NEW", [Status Changes]
    )
VAR _A = [Status Changes]
RETURN
    COUNTAX ( FILTER ( _T, [NEW] = _A ), [NEW] )

 Please add at least one column (Bid No) to the visualization.The final output is shown below:

3.12.1.count measure.PNG

 

Here is the pbix file.

 

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

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Aleiadeh ,

 

It's impossible to achieve such a table visual with only measures. It will return a single row like this:

3.12.1.measure table.PNG

And you want to select date dynamically via slicer, so it is impossible to create a calculated table as well.

 

Please try this:

Status Changes =
VAR _MINDATE =
    MINX ( 'Table(1)', 'Table(1)'[Attribute] )
VAR _MAXDATE =
    MAXX ( 'Table(1)', 'Table(1)'[Attribute] )
VAR _MINVALUE =
    CALCULATE (
        MAX ( 'Table(1)'[Value] ),
        FILTER ( 'Table(1)', 'Table(1)'[Attribute] = _MINDATE )
    )
VAR _MAXVALUE =
    CALCULATE (
        MAX ( 'Table(1)'[Value] ),
        FILTER ( 'Table(1)', 'Table(1)'[Attribute] = _MAXDATE )
    )
RETURN
    _MINVALUE & " - " & _MAXVALUE
COUNT =
VAR _T =
    SUMMARIZE (
        ALLSELECTED ( 'Table(1)' ),
        'Table(1)'[Bid No.],
        "NEW", [Status Changes]
    )
VAR _A = [Status Changes]
RETURN
    COUNTAX ( FILTER ( _T, [NEW] = _A ), [NEW] )

 Please add at least one column (Bid No) to the visualization.The final output is shown below:

3.12.1.count measure.PNG

 

Here is the pbix file.

 

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors