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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Syndicate_Admin
Administrator
Administrator

Calculation Group with Tabular Editor

Alexgamb20_0-1642999065537.png

Using calculation group with Tabular Editor, when selecting the segmenter whether this volume, sales or contributions show the 3 data that correspond to CY: As current year PY: as last year and BG as Budget with its corresponding unit of measurement for example if it is contributions show me only the contributions 2021, 2022, and the respective Budget in a graph as shown above. 2021 and 2020 go in bars and the budget the line... the attached tables are an example of my model I have attached the 2 years 2021 and 2020 in a single table.

If the graph could not be made even if it is the segmentation with the 3 measures with their format of unit of measurement.

I attach link with PBIX and BD in case someone would like to help me 😞

https://drive.google.com/drive/folders/1sbxfXNHW_FIYyP3-M4E7RQofGqwsRxVA?usp=sharing

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

The problem is that you do not use tabular editor, to be able to change one measure with another and that has the corresponding format.

Anonymous
Not applicable

Hi @Alexgamb20,

I updated your sample pbix file(see attachment), please check whether that is what you want.

1. Update the formula of measure [BG BUdget] and [CY Current Year] as below

BG BUdget = 
VAR _seldate =
    SELECTEDVALUE ( 'Fecha'[Date] )
RETURN
    CALCULATE (
        SUM ( 'Year_BG_Key_Account'[Ventas USD] ),
        FILTER ( 'Year_BG_Key_Account', 'Year_BG_Key_Account'[Fecha] = _seldate )
    )
CY Current Year = 
VAR _seldate =
    SELECTEDVALUE ( 'Fecha'[Date] )
RETURN
    CALCULATE (
        SUM ( Anexar1[Ventas USD] ),
        FILTER ( 'Anexar1', 'Anexar1'[Fecha] = _seldate )
    )

2. Create a line and clustered column chart as below

yingyinr_1-1643276907258.png

Best Regards

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.